summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-09-08 21:13:19 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-08 21:13:19 +0000
commitb29acb43879728de373f643ee0e3ca684c42df8c (patch)
treec0083a295835be4ed1402c3c602037b8ef0360d6 /ci
parent31882813e2b47c840634aa5461d2cb4b8d58a172 (diff)
parentb71fa1a1b388d3db115677541afac6042fa9b07e (diff)
Merge "External network for ocl"
Diffstat (limited to 'ci')
-rwxr-xr-xci/openstack.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh
index d449fb1b..b9504d2a 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 \