blob: 0d4970610e7e6e7d1cc25aef607fdbe035a09558 [file] [log] [blame]
Scott Baker50421662016-06-27 22:09:48 -07001#!/bin/bash
2# set -x
3
4source ../../setup/admin-openrc.sh
5
6get_ip () {
7 LABEL=$1
8 NETWORK=$2
9 nova list --all-tenants|grep $LABEL|sed "s/^.*$NETWORK=//g"|sed 's/; .*$//g'|awk '{print $1}'
10}
11
12cat <<EOF
13$( get_ip mysite_onos_vbng flat-lan-1-net) onos_vbng
14$( get_ip mysite_vbng flat-lan-1-net) switch_vbng
15$( get_ip mysite_onos_volt flat-lan-1-net) onos_volt
16$( get_ip mysite_volt flat-lan-1-net) switch_volt
17$( get_ip mysite_clients flat-lan-1-net) client
18$( get_ip mysite_vsg flat-lan-1-net) vcpe
19EOF