blob: 6c07ef900615dbf74b4f433e32c2ee59491be6c2 [file] [log] [blame]
#!/bin/bash
# set -x
source ../../setup/admin-openrc.sh
get_ip () {
LABEL=$1
NETWORK=$2
nova list --all-tenants|grep $LABEL|sed "s/^.*$NETWORK=//g"|sed 's/; .*$//g'|awk '{print $1}'
}
cat <<EOF
$( get_ip mysite_onos_vbng flat-lan-1-net) onos_vbng
$( get_ip mysite_vbng flat-lan-1-net) switch_vbng
$( get_ip mysite_onos_volt flat-lan-1-net) onos_volt
$( get_ip mysite_volt flat-lan-1-net) switch_volt
$( get_ip mysite_clients flat-lan-1-net) client
$( get_ip mysite_vcpe flat-lan-1-net) vcpe
EOF