Skip to content

Commit 3123df2

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 571ac47 commit 3123df2

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
@@ -21,6 +21,7 @@
2121
from neutron_lib.api.definitions import bgp_4byte_asn
2222
from neutron_lib.api.definitions import bgp_dragentscheduler
2323
from neutron_lib.api.definitions import default_subnetpools
24+
from neutron_lib.api.definitions import dhcpagentscheduler
2425
from neutron_lib.api.definitions import dns
2526
from neutron_lib.api.definitions import dns_domain_keywords
2627
from neutron_lib.api.definitions import dns_domain_ports
@@ -117,6 +118,7 @@
117118
portbindings.ALIAS,
118119
pbe_ext.ALIAS,
119120
default_subnetpools.ALIAS,
121+
dhcpagentscheduler.ALIAS,
120122
dns.ALIAS,
121123
external_net.ALIAS,
122124
extra_dhcp_opt.ALIAS,

0 commit comments

Comments
 (0)