Add devstack plugin to enable ovs distributed dhcp service

Partially-Implements: bp/distributed-dhcp-for-ml2-ovs
Related-Bug: #1900934
Change-Id: I5617a72fcd4ec0de9aa7d1444d515e713029fa76
This commit is contained in:
Slawek Kaplonski 2021-08-04 14:08:24 +02:00
parent ece64f3857
commit ca2885889f
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,4 @@
function configure_ovs_distributed_dhcp {
plugin_agent_add_l2_agent_extension "dhcp"
iniset $NEUTRON_CONF DEFAULT enable_traditional_dhcp False
}

View File

@ -1,5 +1,6 @@
LIBDIR=$DEST/neutron/devstack/lib
source $LIBDIR/distributed_dhcp
source $LIBDIR/dns
source $LIBDIR/flavors
source $LIBDIR/l2_agent
@ -79,6 +80,11 @@ if [[ "$1" == "stack" ]]; then
if is_service_enabled neutron-network-segment-range; then
configure_network_segment_range
fi
if is_service_enabled q-distributed-dhcp neutron-distributed-dhcp; then
if [ $Q_AGENT = openvswitch ]; then
configure_ovs_distributed_dhcp
fi
fi
if is_service_enabled q-agt neutron-agent; then
configure_l2_agent
fi