Browse Source

Devstack plugin for network-segment-range api

This patch implements devstack plugin for network-segment-range api.
The network-segment-range api service is based on network-segment-range
spec [1].

[1] https://specs.openstack.org/openstack/neutron-specs/specs/stein/network-segment-range-management.html

Co-authored-by: Allain Legacy <Allain.legacy@windriver.com>

Partially-implements: blueprint network-segment-range-management
Change-Id: I09116a4323763db12917e03f354cf0ef25289fd0
changes/86/638386/21
Kailun Qin 3 years ago
parent
commit
33f404a519
  1. 3
      devstack/lib/network_segment_range
  2. 4
      devstack/plugin.sh
  3. 1
      neutron/tests/contrib/gate_hook.sh
  4. 1
      neutron/tests/contrib/hooks/api_all_extensions
  5. 1
      neutron/tests/contrib/hooks/network_segment_range

3
devstack/lib/network_segment_range

@ -0,0 +1,3 @@
function configure_network_segment_range {
neutron_service_plugin_class_add "network_segment_range"
}

4
devstack/plugin.sh

@ -6,6 +6,7 @@ source $LIBDIR/l2_agent
source $LIBDIR/l2_agent_sriovnicswitch
source $LIBDIR/l3_agent
source $LIBDIR/ml2
source $LIBDIR/network_segment_range
source $LIBDIR/qos
source $LIBDIR/ovs
source $LIBDIR/segments
@ -56,6 +57,9 @@ if [[ "$1" == "stack" ]]; then
if is_service_enabled neutron-segments; then
configure_segments_extension
fi
if is_service_enabled neutron-network-segment-range; then
configure_network_segment_range
fi
if is_service_enabled q-agt neutron-agent; then
configure_l2_agent
fi

1
neutron/tests/contrib/gate_hook.sh

@ -102,6 +102,7 @@ case $VENV in
load_rc_hook qos
load_rc_hook segments
load_rc_hook trunk
load_rc_hook network_segment_range
load_conf_hook vlan_provider
load_conf_hook osprofiler
load_conf_hook availability_zone

1
neutron/tests/contrib/hooks/api_all_extensions

@ -33,6 +33,7 @@ NETWORK_API_EXTENSIONS+=",net-mtu"
NETWORK_API_EXTENSIONS+=",net-mtu-writable"
NETWORK_API_EXTENSIONS+=",network-ip-availability"
NETWORK_API_EXTENSIONS+=",network_availability_zone"
NETWORK_API_EXTENSIONS+=",network-segment-range"
NETWORK_API_EXTENSIONS+=",pagination"
NETWORK_API_EXTENSIONS+=",port-security"
NETWORK_API_EXTENSIONS+=",project-id"

1
neutron/tests/contrib/hooks/network_segment_range

@ -0,0 +1 @@
enable_service neutron-network-segment-range
Loading…
Cancel
Save