Files
753fa2410639dca3957f0bffbb2e632181f00f77
networking-bgpvpn /devstack /plugin.sh
Thomas Morin 753fa24106 OVS Agent extension for bagpipe driver
This change introduces an OVS L2 agent extension that will now be used
instead of the previous agent in ovs_bagpipe_neutron_agent.py which
was inheriting from the Neutron OVS agent in a crude way, requiring
duplicating the main() code.
We also remove mention of the old bagpipe-openvswitch agent
in the documentation and and adapt the devstack plugin so that
old local.conf will still work.
Change-Id: Ibf27e2b028efffa1e49207d39bfc9b13464180ad
Closes-Bug: 1492021
Closes-Bug: 1531459
2016年03月10日 15:56:46 +01:00

54 lines
1.9 KiB
Bash

#!/bin/bash
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set +o xtrace
if [[ "1ドル" == "source" ]]; then
# no-op
:
elif [[ "1ドル" == "stack" && "2ドル" == "install" ]]; then
echo_summary "Installing networking-bgpvpn"
setup_develop $NETWORKING_BGPVPN_DIR
elif [[ "1ドル" == "stack" && "2ドル" == "pre-install" ]]; then
echo_summary "Enabling networking-bgpvpn service plugin"
_neutron_service_plugin_class_add $BGPVPN_PLUGIN_CLASS
if [[ "$Q_AGENT" == "bagpipe-openvswitch" ]]; then
echo "networking-bagpipe: you don't need to set Q_AGENT=bagpipe-openvswitch anymore"
Q_AGENT=openvswitch``
fi
elif [[ "1ドル" == "stack" && "2ドル" == "extra" ]]; then
if is_service_enabled tempest; then
echo_summary "Enabling bgpvpn in $TEMPEST_CONFIG"
iniset $TEMPEST_CONFIG service_available bgpvpn "True"
fi
elif [[ "1ドル" == "stack" && "2ドル" == "post-config" ]]; then
if is_service_enabled q-svc; then
echo_summary "Configuring networking-bgpvpn"
mkdir -v -p $NEUTRON_CONF_DIR/policy.d && cp -v $NETWORKING_BGPVPN_DIR/etc/neutron/policy.d/bgpvpn.conf $NEUTRON_CONF_DIR/policy.d
mkdir -v -p $(dirname $NETWORKING_BGPVPN_CONF) && cp -v $NETWORKING_BGPVPN_DIR/etc/neutron/networking_bgpvpn.conf $NETWORKING_BGPVPN_CONF
inicomment $NETWORKING_BGPVPN_CONF service_providers service_provider
iniadd $NETWORKING_BGPVPN_CONF service_providers service_provider $NETWORKING_BGPVPN_DRIVER
fi
if is_service_enabled q-agt -a [[ "$Q_AGENT" == "openvswitch" ]]; then
echo_summary "Configuring OVS agent for bagpipe"
iniadd /$Q_PLUGIN_CONF_FILE agent extensions bagpipe_bgpvpn
fi
if is_service_enabled h-eng;then
echo_summary "Enabling bgpvpn in $HEAT_CONF"
iniset $HEAT_CONF DEFAULT plugin_dirs $NETWORKING_BGPVPN_DIR/networking_bgpvpn_heat
fi
fi
if [[ "1ドル" == "unstack" ]]; then
#no-op
:
fi
if [[ "1ドル" == "clean" ]]; then
#no-op
:
fi
set +x
$xtrace