Skip to content

Commit 8e6c189

Browse files
committed
Filter subnets by "enable_dhcp" flag using the correct type
While other SQL engines can compare interger and boolean types, PostgreSQL needs explicit casting to compare variables. Method "_sync_subnet_dhcp_options" is currently raising the following error: operator does not exist: boolean = integer Closes-Bug: #2004581 Change-Id: I715029c311c4516f3212054c5c72533b12fd0986 (cherry picked from commit 61b2917)
1 parent a70cfff commit 8e6c189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_db_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ def _sync_subnet_dhcp_options(self, ctx, db_networks,
769769
LOG.debug('OVN-NB Sync DHCP options for Neutron subnets started')
770770

771771
db_subnets = {}
772-
filters = {'enable_dhcp': [1]}
772+
filters = {'enable_dhcp': [True]}
773773
for subnet in self.core_plugin.get_subnets(ctx, filters=filters):
774774
if (subnet['ip_version'] == constants.IP_VERSION_6 and
775775
subnet.get('ipv6_address_mode') == constants.IPV6_SLAAC):

0 commit comments

Comments
 (0)