Browse Source

devstack: switch to new NEUTRON_* variables

Those are generally defined by new lib/neutron code.

Change-Id: I2dd0128267b8a836c392d7ac26ade5bd0f421997
Co-Authored-By: YAMAMOTO Takashi <yamamoto@midokura.com>
changes/94/445294/1
Ihar Hrachyshka 5 years ago
parent
commit
abd38171ba
  1. 2
      devstack/lib/l2_agent
  2. 2
      devstack/lib/l2_agent_sriovnicswitch
  3. 2
      devstack/lib/macvtap_agent
  4. 2
      devstack/lib/qos
  5. 15
      devstack/plugin.sh
  6. 2
      neutron/tests/contrib/hooks/mtu
  7. 2
      neutron/tests/contrib/hooks/ovsfw

2
devstack/lib/l2_agent

@ -9,5 +9,5 @@ function plugin_agent_add_l2_agent_extension {
function configure_l2_agent {
iniset /$Q_PLUGIN_CONF_FILE agent extensions "$L2_AGENT_EXTENSIONS"
iniset /$NEUTRON_CORE_PLUGIN_CONF agent extensions "$L2_AGENT_EXTENSIONS"
}

2
devstack/lib/l2_agent_sriovnicswitch

@ -1,4 +1,4 @@
SRIOV_AGENT_CONF="${Q_PLUGIN_CONF_PATH}/sriov_agent.ini"
SRIOV_AGENT_CONF="${NEUTRON_CORE_PLUGIN_CONF_PATH}/sriov_agent.ini"
SRIOV_AGENT_BINARY="${NEUTRON_BIN_DIR}/neutron-sriov-nic-agent"
function configure_l2_agent_sriovnicswitch {

2
devstack/lib/macvtap_agent

@ -33,7 +33,7 @@ function neutron_plugin_configure_l3_agent {
function neutron_plugin_configure_plugin_agent {
# Only the NooPFirewallDriver is supported. If not set, the agent will
# terminate.
iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver noop
iniset /$NEUTRON_CORE_PLUGIN_CONF securitygroup firewall_driver noop
AGENT_BINARY="$NEUTRON_BIN_DIR/neutron-macvtap-agent"
}

2
devstack/lib/qos

@ -4,7 +4,7 @@ function configure_qos_service_plugin {
function configure_qos_core_plugin {
configure_qos_$Q_PLUGIN
configure_qos_$NEUTRON_CORE_PLUGIN
}

15
devstack/plugin.sh

@ -1,5 +1,12 @@
LIBDIR=$DEST/neutron/devstack/lib
if is_neutron_legacy_enabled; then
NEUTRON_CORE_PLUGIN=$Q_PLUGIN
NEUTRON_AGENT=$Q_AGENT
NEUTRON_CORE_PLUGIN_CONF_PATH=$Q_PLUGIN_CONF_PATH
NEUTRON_CORE_PLUGIN_CONF=$Q_PLUGIN_CONF_FILE
fi
source $LIBDIR/dns
source $LIBDIR/flavors
source $LIBDIR/l2_agent
@ -11,8 +18,8 @@ source $LIBDIR/trunk
Q_BUILD_OVS_FROM_GIT=$(trueorfalse False Q_BUILD_OVS_FROM_GIT)
if [ -f $LIBDIR/${Q_AGENT}_agent ]; then
source $LIBDIR/${Q_AGENT}_agent
if [ -f $LIBDIR/${NEUTRON_AGENT}_agent ]; then
source $LIBDIR/${NEUTRON_AGENT}_agent
fi
if [[ "$1" == "stack" ]]; then
@ -30,7 +37,7 @@ if [[ "$1" == "stack" ]]; then
if is_service_enabled q-dns; then
configure_dns_extension
fi
if [[ "$Q_AGENT" == "openvswitch" ]] && \
if [[ "$NEUTRON_AGENT" == "openvswitch" ]] && \
[[ "$Q_BUILD_OVS_FROM_GIT" == "True" ]]; then
remove_ovs_packages
compile_ovs True /usr /var
@ -50,7 +57,7 @@ if [[ "$1" == "stack" ]]; then
#Therefore we create new service, q-sriov-agt, and the q-agt should be OVS
#or linux bridge.
if is_service_enabled q-sriov-agt; then
configure_$Q_PLUGIN
configure_$NEUTRON_CORE_PLUGIN
configure_l2_agent
configure_l2_agent_sriovnicswitch
fi

2
neutron/tests/contrib/hooks/mtu

@ -3,7 +3,7 @@
[neutron_plugin_options]
available_type_drivers=flat,geneve,vlan,gre,local,vxlan
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[[post-config|/$NEUTRON_CORE_PLUGIN_CONF]]
[ml2]
type_drivers=flat,geneve,vlan,gre,local,vxlan

2
neutron/tests/contrib/hooks/ovsfw

@ -1,4 +1,4 @@
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[[post-config|/$NEUTRON_CORE_PLUGIN_CONF]]
[securitygroup]
firewall_driver = openvswitch

Loading…
Cancel
Save