Scott Baker | 5042166 | 2016-06-27 22:09:48 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # set -x |
| 3 | |
| 4 | source ../../setup/admin-openrc.sh |
| 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_vsg flat-lan-1-net) vcpe |
| 19 | EOF |