Browse Source

Merge "Check subnet in "_remove_subnet_dhcp_options"" into stable/victoria

changes/01/823401/1
Zuul 5 months ago committed by Gerrit Code Review
parent
commit
a3ceee1920
  1. 2
      neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py

2
neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py

@ -1916,7 +1916,7 @@ class OVNClient(object):
dhcp_options = self._nb_idl.get_subnet_dhcp_options(
subnet_id, with_ports=True)
if dhcp_options['subnet'] is not None:
if dhcp_options['subnet']:
txn.add(self._nb_idl.delete_dhcp_options(
dhcp_options['subnet']['uuid']))

Loading…
Cancel
Save