Skip to content

Commit 9d46380

Browse files
committed
Add dhcpagentscheduler API extension to the ML2/OVN extensions
In most typical use cases ML2/OVN backend don't needs to run DHCP agent as OVN provides DHCP functionality natively. But there are some use cases like Baremetal provisioning over IPv6 or Spine Leaf architecture with DHCP relays where DHCP agent is necessary and it can work perfectly fine with ML2/OVN backend. The problem was that dhcpagentscheduler API extension wasn't listed as supported by the OVN backend so it was filtered out from the list of supported extensions during start of the neutron server. This caused problems with API to get/set/delete networks to/from DHCP agent. This patch adds this API extension to the list of the extensions supported by the OVN driver to fix that issue. Depends-On: https://review.opendev.org/c/openstack/tempest/+/898090 Closes-bug: #2038655 Change-Id: I09a37ca451d44607b7dde344c93ace060c7bda01 (cherry picked from commit f006d29)
1 parent 95caa53 commit 9d46380

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

neutron/common/ovn/extensions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from neutron_lib.api.definitions import auto_allocated_topology
1919
from neutron_lib.api.definitions import availability_zone as az_def
2020
from neutron_lib.api.definitions import default_subnetpools
21+
from neutron_lib.api.definitions import dhcpagentscheduler
2122
from neutron_lib.api.definitions import dns
2223
from neutron_lib.api.definitions import dns_domain_keywords
2324
from neutron_lib.api.definitions import dns_domain_ports
@@ -106,6 +107,7 @@
106107
portbindings.ALIAS,
107108
pbe_ext.ALIAS,
108109
default_subnetpools.ALIAS,
110+
dhcpagentscheduler.ALIAS,
109111
dns.ALIAS,
110112
external_net.ALIAS,
111113
extra_dhcp_opt.ALIAS,

0 commit comments

Comments
 (0)