Skip to content

Commit a84b209

Browse files
elajkatkatonalala
authored andcommitted
Rehome functions to enable Neutron's segments integration
Those functions were part of the neutron devstack plugin but we discussed it during last PTG [1] and decided to move to the Devstack repo as plugins which are used by e.g. CI jobs which are defined outside of the neutron repository. Placement integration is used e.g. in the tempest-slow job which is defined in tempest and used by many different OpenStack projects. [1] https://etherpad.opendev.org/p/neutron-yoga-ptg#L142 Change-Id: I2c26063896ab2679cffd01227a40a3283caa3b17
1 parent 7533276 commit a84b209

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

lib/neutron

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ source $TOP_DIR/lib/neutron_plugins/services/l3
294294
source $TOP_DIR/lib/neutron_plugins/services/placement
295295
source $TOP_DIR/lib/neutron_plugins/services/trunk
296296
source $TOP_DIR/lib/neutron_plugins/services/qos
297+
source $TOP_DIR/lib/neutron_plugins/services/segments
297298

298299
# Use security group or not
299300
if has_neutron_plugin_security_group; then
@@ -416,6 +417,10 @@ function configure_neutron {
416417
configure_l3_agent_extension_gateway_ip_qos
417418
fi
418419
fi
420+
if is_service_enabled neutron-segments; then
421+
configure_placement_neutron
422+
configure_segments_extension
423+
fi
419424

420425
# Finally configure Neutron server and core plugin
421426
if is_service_enabled q-agt neutron-agent q-svc neutron-api; then
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
function configure_segments_service_plugin {
4+
neutron_service_plugin_class_add segments
5+
}
6+
7+
function configure_segments_extension {
8+
configure_segments_service_plugin
9+
}
10+

0 commit comments

Comments
 (0)