Merge "Filter subnets by "enable_dhcp" flag using the correct type" into stable/zed
This commit is contained in:
commit
898466ab4e
|
@ -776,7 +776,7 @@ class OvnNbSynchronizer(OvnDbSynchronizer):
|
||||||
LOG.debug('OVN-NB Sync DHCP options for Neutron subnets started')
|
LOG.debug('OVN-NB Sync DHCP options for Neutron subnets started')
|
||||||
|
|
||||||
db_subnets = {}
|
db_subnets = {}
|
||||||
filters = {'enable_dhcp': [1]}
|
filters = {'enable_dhcp': [True]}
|
||||||
for subnet in self.core_plugin.get_subnets(ctx, filters=filters):
|
for subnet in self.core_plugin.get_subnets(ctx, filters=filters):
|
||||||
if (subnet['ip_version'] == constants.IP_VERSION_6 and
|
if (subnet['ip_version'] == constants.IP_VERSION_6 and
|
||||||
subnet.get('ipv6_address_mode') == constants.IPV6_SLAAC):
|
subnet.get('ipv6_address_mode') == constants.IPV6_SLAAC):
|
||||||
|
|
Loading…
Reference in New Issue