neutron-dynamic-routing/devstack/plugin.sh
steve.ruan e0b214a7d4 Add "neutron-bgp-dragent" to setup.cfg
neutron-bgp-dragent will be added to "/usr/local/bin" by install
script automatically when it's defined in entry_points section

Change-Id: I7592de868602db8f0c09756246a044cbe73d4800
Implements: blueprint bgp-spinout
Partial-Bug: #1560003
2016-05-25 15:43:57 -07:00

24 lines
608 B
Bash

LIBDIR=$NEUTRON_DYNAMIC_ROUTING_DIR/devstack/lib
source $LIBDIR/dr
if [[ "$1" == "stack" ]]; then
case "$2" in
install)
echo_summary "Installing neutron-dynamic-routing"
dr_install
;;
post-config)
echo_summary "Configuring neutron-dynamic-routing"
dr_post_configure
;;
extra)
echo_summary "Launching neutron-dynamic-routing agent"
start_dr_agent
;;
esac
elif [[ "$1" == "unstack" ]]; then
echo_summary "Uninstalling neutron-dynamic-routing"
stop_dr_agent
fi