Merge "Add test for credentials set"
This commit is contained in:
commit
8892111bfe
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
# Script originally copied from https://wiki.openstack.org/wiki/Neutron/VPNaaS/HowToInstall
|
# Script originally copied from https://wiki.openstack.org/wiki/Neutron/VPNaaS/HowToInstall
|
||||||
|
|
||||||
|
# Test for credentials set
|
||||||
|
if [[ "${OS_USERNAME}" == "" ]]; then
|
||||||
|
echo "No Keystone credentials specified. Try running source openrc"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
EXT_NW_ID=`neutron net-list | awk '/public/{print $2}'`
|
EXT_NW_ID=`neutron net-list | awk '/public/{print $2}'`
|
||||||
WEST_SUBNET='192.168.1.0/24'
|
WEST_SUBNET='192.168.1.0/24'
|
||||||
EAST_SUBNET='192.168.2.0/24'
|
EAST_SUBNET='192.168.2.0/24'
|
||||||
|
Loading…
Reference in New Issue
Block a user