to fix ODL issue. 87/28287/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Wed, 8 Feb 2017 14:23:50 +0000 (08:23 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Thu, 9 Feb 2017 13:46:38 +0000 (07:46 -0600)
Change-Id: Iae384f8ba902cc001b7ffd2d55fcbef25333ecba
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/deploy.sh
ci/odl/fetch-charms.sh
ci/openstack.sh

index 89dcfe0..d933dbe 100755 (executable)
@@ -126,7 +126,15 @@ deploy() {
                 python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
             fi
         else
-            echo " MAAS not deployed please deploy MAAS first."
+            if [ -e ./labconfig.yaml ]; then
+                if [ ! -f ./deployconfig.yaml ] && [ -e ~/joid_config/deployconfig.yaml ]; then
+                    cp ~/joid_config/deployconfig.yaml ./deployconfig.yaml
+                else
+                    python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
+                fi
+            else
+                echo " MAAS not deployed please deploy MAAS first."
+            fi
         fi
     else
         if [ ! -f ./environments.yaml ] && [ -e ~/.juju/environments.yaml ]; then
index 790e39e..f1b2ecb 100755 (executable)
@@ -13,6 +13,7 @@ function build {
 bzr branch lp:~narindergupta/charms/trusty/promise/trunk $distro/promise
 bzr branch lp:~billy-olsen/charms/xenial/mongodb/trunk $distro/mongodb
 bzr branch lp:~narindergupta/opnfv/ntp $distro/ntp
+bzr branch lp:~narindergupta/opnfv/neutron-gateway $distro/neutron-gateway
 
 git clone https://github.com/gnuoy/charm-congress.git $distro/charm-congress
 build congress
@@ -29,7 +30,7 @@ git clone  https://github.com/openstack/charm-glance.git $distro/glance
 git clone  https://github.com/openstack/charm-keystone.git $distro/keystone
 git clone  https://github.com/openstack/charm-percona-cluster.git $distro/percona-cluster
 git clone  https://github.com/openstack/charm-neutron-api.git $distro/neutron-api
-git clone  https://github.com/openstack/charm-neutron-gateway.git $distro/neutron-gateway
+#git clone  https://github.com/openstack/charm-neutron-gateway.git $distro/neutron-gateway
 git clone  https://github.com/openstack/charm-neutron-openvswitch.git $distro/neutron-openvswitch
 git clone  https://github.com/openstack/charm-nova-cloud-controller.git $distro/nova-cloud-controller
 git clone  https://github.com/openstack/charm-nova-compute.git $distro/nova-compute
index 06e59c4..71f005e 100755 (executable)
@@ -238,7 +238,8 @@ elif [ "nosdn" == "$opnfvsdn" ]; then
 elif [ "odl" == "$opnfvsdn" ]; then
     neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net \
                                                    --router:external=True \
-                                                   --provider:network_type vxlan
+                                                   --provider:network_type vxlan \
+                                                   --provider:physical_network physnet1
 
     neutron subnet-show ext-subnet > /dev/null 2>&1 || neutron subnet-create ext-net \
         --name ext-subnet --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \