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:
9
devstack/lib/local_ip
Normal file
9
devstack/lib/local_ip
Normal 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
|
||||||
|
}
|
@@ -16,6 +16,7 @@ source $LIBDIR/uplink_status_propagation
|
|||||||
source $LIBDIR/tag_ports_during_bulk_creation
|
source $LIBDIR/tag_ports_during_bulk_creation
|
||||||
source $LIBDIR/octavia
|
source $LIBDIR/octavia
|
||||||
source $LIBDIR/loki
|
source $LIBDIR/loki
|
||||||
|
source $LIBDIR/local_ip
|
||||||
|
|
||||||
# source the OVS/OVN compilation helper methods
|
# source the OVS/OVN compilation helper methods
|
||||||
source $TOP_DIR/lib/neutron_plugins/ovs_source
|
source $TOP_DIR/lib/neutron_plugins/ovs_source
|
||||||
@@ -73,6 +74,12 @@ if [[ "$1" == "stack" ]]; then
|
|||||||
configure_ovs_distributed_dhcp
|
configure_ovs_distributed_dhcp
|
||||||
fi
|
fi
|
||||||
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
|
if is_service_enabled q-agt neutron-agent; then
|
||||||
configure_l2_agent
|
configure_l2_agent
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user