e0b214a7d4
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
24 lines
608 B
Bash
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
|