File: plugin.sh

package info (click to toggle)
neutron-dynamic-routing 2:15.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,168 kB
  • sloc: python: 7,878; sh: 268; makefile: 41
file content (23 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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