summaryrefslogtreecommitdiffstats
path: root/roles/contiv/templates/aci_gw.j2
blob: 5ff349945faf3573d0aa5c31e523418c9919e7ae (plain)
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
32
33
34
35
#!/bin/bash

usage="$0 start"
if [ $# -ne 1 ]; then
    echo USAGE: $usage
    exit 1
fi

case $1 in
start)
    set -e

    docker run --net=host \
    -e "APIC_URL={{ contiv_apic_url }}" \
    -e "APIC_USERNAME={{ contiv_apic_username }}" \
    -e "APIC_PASSWORD={{ contiv_apic_password }}" \
    -e "APIC_LEAF_NODE={{ contiv_apic_leaf_nodes }}" \
    -e "APIC_PHYS_DOMAIN={{ contiv_apic_phys_dom }}" \
    -e "APIC_EPG_BRIDGE_DOMAIN={{ contiv_apic_epg_bridge_domain }}" \
    -e "APIC_CONTRACTS_UNRESTRICTED_MODE={{ contiv_apic_contracts_unrestricted_mode }}" \
    --name=contiv-aci-gw \
    contiv/aci-gw
    ;;

stop)
    # don't stop on error
    docker stop contiv-aci-gw
    docker rm contiv-aci-gw
    ;;

*)
    echo USAGE: $usage
    exit 1
    ;;
esac