File: plugin.sh

package info (click to toggle)
networking-baremetal 7.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: python: 5,087; sh: 98; makefile: 35
file content (31 lines) | stat: -rw-r--r-- 1,240 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
# plugin.sh - DevStack plugin.sh dispatch script template

echo_summary "networking-baremetal devstack plugin.sh called: $1/$2"
source $DEST/networking-baremetal/devstack/lib/networking-baremetal

# check for service enabled
if is_service_enabled networking_baremetal; then

    if [[ "$1" == "stack" && "$2" == "install" ]]; then
        # Perform installation of service source
        echo_summary "Installing Networking Baremetal ML2"
        install_networking_baremetal

    elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
        # Configure after the other layer 1 and 2 services have been configured
        echo_summary "Configuring Networking Baremetal Ml2"
        configure_networking_baremetal
        echo_summary "Configuring Networking Baremetal Neutron Agent"
        configure_networking_baremetal_neutron_agent
        echo_summary "Starting Networking Baremetal Neutron Agent"
        start_networking_baremetal_neutron_agent
    fi

    if [[ "$1" == "unstack" ]]; then
        echo_summary "Cleaning Networking Baremetal Ml2"
        cleanup_networking_baremetal
        echo_summary "Cleaning Networking Baremtal Neutron Agent"
        stop_networking_baremetal_neutron_agent
    fi
fi