Merge "Filter subnets by "enable_dhcp" flag using the correct type" into stable/zed

This commit is contained in:
Zuul 2023-02-10 10:13:59 +00:00 committed by Gerrit Code Review
commit 898466ab4e
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ class OvnNbSynchronizer(OvnDbSynchronizer):
LOG.debug('OVN-NB Sync DHCP options for Neutron subnets started')
db_subnets = {}
filters = {'enable_dhcp': [1]}
filters = {'enable_dhcp': [True]}
for subnet in self.core_plugin.get_subnets(ctx, filters=filters):
if (subnet['ip_version'] == constants.IP_VERSION_6 and
subnet.get('ipv6_address_mode') == constants.IPV6_SLAAC):