summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Mackie <wsmackie@juniper.net>2017-09-08 13:41:23 -0700
committerStuart Mackie <wsmackie@juniper.net>2017-09-08 13:41:23 -0700
commitb71fa1a1b388d3db115677541afac6042fa9b07e (patch)
treef66c1fd4a97951757331948e30ddd91d8371fe22
parent125d7e8a30700c63f6b015552c4826acc6223bf2 (diff)
External network for ocl
Change-Id: Ied614962516eeb2f2359a349632e1347f85d69e6 Signed-off-by: Stuart Mackie <wsmackie@juniper.net>
-rwxr-xr-xci/openstack.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh
index d449fb1..b9504d2 100755
--- a/ci/openstack.sh
+++ b/ci/openstack.sh
@@ -169,6 +169,18 @@ if [ "onos" == "$opnfvsdn" ]; then
launch_eth
neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net \
--router:external=True
+if [ "ocl" == "$opnfvsdn" ]; then
+ if [ ! neutron net-show ext-net > /dev/null 2>&1 ]
+ then
+ neutron net-create ext-net
+ LAST_UNIT=`juju status | grep nova-compute/ | tail -1 | cut -c14`
+ for ii in {0..$LAST_UNIT}
+ do
+ ssh $II sudo docker exec contrail-controller \
+ python /opt/contrail/utils/provision_vgw_interface.py\
+ --oper create --interface vgw1 --subnets $SUBNET --routes 0.0.0.0/24 --vrf default-domain:admin:$FIP-VN:$FIP-VN
+ done
+ fi
else
neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net \
--router:external=True \