blob: 6c07ef900615dbf74b4f433e32c2ee59491be6c2 [file] [log] [blame]
Andy Bavierae1417f2015-11-25 15:53:50 -05001#!/bin/bash
2# set -x
3
Andy Bavier0c5da862016-01-07 16:33:02 -05004source ../../setup/admin-openrc.sh
Andy Bavierae1417f2015-11-25 15:53:50 -05005
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_vcpe flat-lan-1-net) vcpe
19EOF