corrected the files as per review comment. 03/18103/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Sat, 6 Aug 2016 00:09:05 +0000 (19:09 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Sat, 6 Aug 2016 00:10:11 +0000 (19:10 -0500)
Change-Id: Ib7ad9bdb54b29db25d37d80ad9c1259734032ef2
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/00-maasdeploy.sh
ci/02-deploybundle.sh
ci/config_tpl/bundle_tpl/neutron-gateway.yaml
ci/config_tpl/bundle_tpl/neutron-ovs.yaml
ci/config_tpl/deployconfig.yaml
ci/genDeploymentConfig.py

index 8b8a8d4..98ca47a 100755 (executable)
@@ -31,14 +31,14 @@ labfile=$2
 case "$labname" in
     intelpod[569]|orangepod[12]|cengnpod[12] )
         array=(${labname//pod/ })
-        cp maas/${array[0]}/pod${array[0]}/labconfig.yaml .
-        python genDeploymentConfig.py > deployment.yaml
-        python genMAASConfig.py > deployconfig.yaml
+        cp ../labconfig/${array[0]}/pod${array[1]}/labconfig.yaml .
+        python genMAASConfig.py -l labconfig.yaml > deployment.yaml
+        python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
         ;;
     'attvirpod1' )
-        cp maas/att/virpod1/labconfig.yaml .
-        python genDeploymentConfig.py > deployment.yaml
-        python genMAASConfig.py > deployconfig.yaml
+        cp ../labconfig/att/virpod1/labconfig.yaml .
+        python genMAASConfig.py -l labconfig.yaml > deployment.yaml
+        python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
         ;;
     'juniperpod1' )
         cp maas/juniper/pod1/deployment.yaml ./deployment.yaml
@@ -56,8 +56,8 @@ case "$labname" in
         if [ ! -e ./labconfig.yaml ]; then
             virtinstall=1
         else
-            python genDeploymentConfig.py > deployment.yaml
-            python genMAASConfig.py > deployconfig.yaml
+            python genMAASConfig.py -l labconfig.yaml > deployment.yaml
+            python genDeploymentConfig.py -l labconfig.yaml > deployconfig.yaml
             labname=`grep "maas_name" deployment.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
         fi
         ;;
index ffacef9..12c58fc 100755 (executable)
@@ -78,7 +78,7 @@ done
 #update source if trusty is target distribution
 var=os-$opnfvsdn-$fea-$opnfvtype"-"$opnfvdistro"_"$openstack
 
-if [ "$osdomname" != "''" ]; then
+if [ "$osdomname" != "None" ]; then
     var=$var"_"publicapi
 fi
 
index 74743ef..0719550 100644 (file)
@@ -3,8 +3,6 @@
       options:
 {% if opnfv.spaces_dict.data is defined %}
         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
-{% else %}
-        #os-data-network: {{ opnfv.spaces_dict.data.cidr }}
 {% endif %}
 {% if os.network.controller == 'nosdn' %}
 {% if opnfv.ext_port is defined  %}
index 087783d..6823ca8 100644 (file)
@@ -3,8 +3,6 @@
       options:
 {% if opnfv.spaces_dict.data is defined %}
         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
-{% else %}
-        #os-data-network: {{ opnfv.spaces_dict.data.cidr }}
 {% endif %}
 {% if os.network.dpdk %}
         enable-dpdk: true
index 3bc2ebc..c190d1d 100644 (file)
@@ -4,14 +4,18 @@ opnfv:
   admNetwork: {{ net_prefix }}2
   admin_password: openstack
   ceph-disk: {{ opnfv.storage_dict.ceph.disk }}
+{% if opnfv.spaces_dict.data is defined %}
   dataNetwork: {{ opnfv.spaces_dict.data.cidr }}
+{% endif %}
   domain: {{ lab.racks[0].osdomainname }}
   ext-port: {{ lab.racks[0]['ext-port'] }}
   ext_port: {{ lab.racks[0]['ext-port'] }}
   floating-ip-range: {{ lab.racks[0]['floating-ip-range'] }}
   interface-enable: {{ lab.racks[0].ifnamelist }}
   os-domain-name: {{ lab.racks[0].osdomainname }}
-  publicNetwork: {{ opnfv.spaces_dict.public.cidr if 'public' in opnfv.spaces_dict else '' }}
+{% if opnfv.spaces_dict.public is defined %}
+  publicNetwork: {{ opnfv.spaces_dict.public.cidr }}
+{% endif %}
   spaces:
 {% for net in opnfv.spaces %}
   - bridge: {{ net.bridge }}
@@ -25,7 +29,9 @@ opnfv:
   - disk: {{ storage.disk }}
     type: {{ storage.type }}
 {% endfor %}
-  storageNetwork: {{ opnfv.spaces_dict.storage.cidr if 'storage' in opnfv.spaces_dict else '' }}
+{% if opnfv.spaces_dict.storage is defined %}
+  storageNetwork: {{ opnfv.spaces_dict.storage.cidr }}
+{% endif %}
   units: {{ lab.racks[0].nodes|count }}
   vip:
     ceilometer: {{ net_prefix }}24
index d78c93f..05aeb1f 100644 (file)
@@ -79,7 +79,7 @@ for node in config['lab']['racks'][0]['nodes']:
     for nic in node['nics']:
         if 'admin' not in nic['spaces']:
             ifnamelist.add(nic['ifname'])
-config['lab']['racks'][0]['ifnamelist'] = ', '.join(ifnamelist)
+config['lab']['racks'][0]['ifnamelist'] = ','.join(ifnamelist)
 
 #
 # Transform template to deployconfig.yaml according to config