Andy Bavier | ae1417f | 2015-11-25 15:53:50 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # set -x |
| 3 | |
Andy Bavier | 0c5da86 | 2016-01-07 16:33:02 -0500 | [diff] [blame] | 4 | source ../../setup/admin-openrc.sh |
Andy Bavier | ae1417f | 2015-11-25 15:53:50 -0500 | [diff] [blame] | 5 | |
| 6 | get_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 | |
| 12 | cat <<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 |
| 19 | EOF |