Add devstack plugin support for Local IP

This adds ability to configure local_ip service plugin
and local_ip OVS agent extension.
Needed to enable corresponding API/CLI and scenario tests.

Related-Bug: #1930200
Change-Id: Ia9269b7a73aef116cf8c5bc6ca0a1cca9deaa056
This commit is contained in:
Oleg Bondarev 2021-11-17 12:43:09 +03:00
parent 200b345429
commit 66d50cdbd7
2 changed files with 16 additions and 0 deletions

9
devstack/lib/local_ip Normal file
View File

@ -0,0 +1,9 @@
function configure_local_ip {
neutron_service_plugin_class_add "local_ip"
plugin_agent_add_l2_agent_extension "local_ip"
}
function configure_local_ip_static {
configure_local_ip
iniset /$NEUTRON_CORE_PLUGIN_CONF local_ip static_nat True
}

View File

@ -16,6 +16,7 @@ source $LIBDIR/uplink_status_propagation
source $LIBDIR/tag_ports_during_bulk_creation
source $LIBDIR/octavia
source $LIBDIR/loki
source $LIBDIR/local_ip
# source the OVS/OVN compilation helper methods
source $TOP_DIR/lib/neutron_plugins/ovs_source
@ -73,6 +74,12 @@ if [[ "$1" == "stack" ]]; then
configure_ovs_distributed_dhcp
fi
fi
if is_service_enabled neutron-local-ip; then
configure_local_ip
fi
if is_service_enabled neutron-local-ip-static; then
configure_local_ip_static
fi
if is_service_enabled q-agt neutron-agent; then
configure_l2_agent
fi