Merge "Add devstack plugin to enable ovs distributed dhcp service"

This commit is contained in:
Zuul 2021-08-25 21:57:04 +00:00 committed by Gerrit Code Review
commit c32a5f2192
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