adding support for Newton and correct provide type. 11/23311/3
authorNarinder Gupta <narinder.gupta@canonical.com>
Tue, 18 Oct 2016 18:06:06 +0000 (13:06 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Tue, 18 Oct 2016 18:35:10 +0000 (13:35 -0500)
Change-Id: I98cc23946891c785b1056e5d1d9486ab2f591422
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/02-deploybundle.sh
ci/config_tpl/bundle_tpl/neutron-api.yaml
ci/config_tpl/bundle_tpl/neutron-gateway.yaml
ci/config_tpl/bundle_tpl/neutron-ovs.yaml
ci/config_tpl/juju2/bundle_tpl/neutron-api.yaml
ci/config_tpl/juju2/bundle_tpl/neutron-gateway.yaml
ci/config_tpl/juju2/bundle_tpl/neutron-ovs.yaml
ci/genBundle.py
ci/openstack.sh

index 42879bd..f51ebe2 100755 (executable)
@@ -34,7 +34,7 @@ check_status() {
        juju status > status.txt
        if [ "$(grep -c "waiting" status.txt )" -ge 4 ]; then
            echo " still waiting for machines ..."
-           if [ $timeoutiter -ge 240 ]; then
+           if [ $timeoutiter -ge 360 ]; then
                retval=1
            fi
            timeoutiter=$((timeoutiter+1))
index f7523e7..dd477bd 100644 (file)
         vip: {{ opnfv.vip.neutron }}
 {% endif %}
 {% if os.network.controller == 'nosdn' %}
-        flat-network-providers: "*"
+        flat-network-providers: physnet1
 {% if os.network.dvr %}
         overlay-network-type: vxlan
 {% endif %}
 {% elif os.network.controller == 'odl' %}
         manage-neutron-plugin-legacy-mode: False
+        flat-network-providers: physnet1
 {% elif os.network.controller == 'onos' %}
-        flat-network-providers: "*"
+        flat-network-providers: physnet1
         manage-neutron-plugin-legacy-mode: False
 {% endif %}
 {% if os.beta.public_api %}
index ab58f5a..dcd6734 100644 (file)
 {% if os.network.controller == 'nosdn' %}
 {% if opnfv.ext_port is defined  %}
 {% if opnfv.data_port is defined  %}
-        bridge-mappings: physnet1:br-data external:br-ex
-        data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+        bridge-mappings: physnet1:br-ex physnet2:br-data
+        data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
 {% else %}
-        bridge-mappings: external:br-ex
+        bridge-mappings: physnet1:br-ex
         data-port: br-ex:{{ opnfv.ext_port }}
 {% endif %}
 {% endif %}
 {% elif os.network.controller == 'odl' %}
         plugin: ovs-odl
 {% if opnfv.ext_port is defined  %}
-        ext-port: {{ opnfv.ext_port }}
+{% if opnfv.data_port is defined  %}
+        bridge-mappings: physnet1:br-ex physnet2:br-data
+        data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
+{% else %}
+        bridge-mappings: physnet1:br-ex
+        data-port: br-ex:{{ opnfv.ext_port }}
+{% endif %}
 {% endif %}
 {% else %}
 {% if opnfv.ext_port is defined  %}
index 6823ca8..6c61281 100644 (file)
 {% if os.network.dvr %}
 {% if os.network.controller == 'nosdn' %}
 {% if opnfv.data_port is defined  %}
-        bridge-mappings: physnet1:br-data external:br-ex
-        data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+        bridge-mappings: physnet1:br-ex physnet2:br-data
+        data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
 {% else %}
-        bridge-mappings: external:br-ex
+        bridge-mappings: physnet1:br-ex
         data-port: br-ex:{{ opnfv.ext_port }}
 {% endif %}
 {% else %}
index 934e466..420a0af 100644 (file)
         vip: {{ opnfv.vip.neutron }}
 {% endif %}
 {% if os.network.controller == 'nosdn' %}
-        flat-network-providers: "*"
+        flat-network-providers: physnet1
 {% if os.network.dvr %}
         overlay-network-type: vxlan
 {% endif %}
 {% elif os.network.controller == 'odl' %}
         manage-neutron-plugin-legacy-mode: False
+        flat-network-providers: physnet1
 {% elif os.network.controller == 'onos' %}
-        flat-network-providers: "*"
+        flat-network-providers: physnet1
         manage-neutron-plugin-legacy-mode: False
 {% endif %}
 {% if os.beta.public_api %}
index df60012..2f9e9ab 100644 (file)
 {% if os.network.controller == 'nosdn' %}
 {% if opnfv.ext_port is defined  %}
 {% if opnfv.data_port is defined  %}
-        bridge-mappings: physnet1:br-data external:br-ex
-        data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+        bridge-mappings: physnet1:br-ex physnet2:br-data
+        data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
 {% else %}
-        bridge-mappings: external:br-ex
+        bridge-mappings: physnet1:br-ex
         data-port: br-ex:{{ opnfv.ext_port }}
 {% endif %}
 {% endif %}
 {% elif os.network.controller == 'odl' %}
         plugin: ovs-odl
 {% if opnfv.ext_port is defined  %}
-        ext-port: {{ opnfv.ext_port }}
+{% if opnfv.data_port is defined  %}
+        bridge-mappings: physnet1:br-ex physnet2:br-data
+        data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
+{% else %}
+        bridge-mappings: physnet1:br-ex
+        data-port: br-ex:{{ opnfv.ext_port }}
+{% endif %}
 {% endif %}
 {% else %}
 {% if opnfv.ext_port is defined  %}
index 286132b..266ac70 100644 (file)
 {% if os.network.dvr %}
 {% if os.network.controller == 'nosdn' %}
 {% if opnfv.data_port is defined  %}
-        bridge-mappings: physnet1:br-data external:br-ex
-        data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+        bridge-mappings: physnet1:br-ex physnet2:br-data
+        data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
 {% else %}
-        bridge-mappings: external:br-ex
+        bridge-mappings: physnet1:br-ex
         data-port: br-ex:{{ opnfv.ext_port }}
 {% endif %}
 {% else %}
index 3eecdf4..3aa5bce 100644 (file)
@@ -200,6 +200,10 @@ if 'trusty' in extra:
     config['ubuntu']['release'] = 'trusty'
     if 'liberty' in extra:
         config['os']['release'] = 'liberty'
+if 'xenial' in extra:
+    config['ubuntu']['release'] = 'xenial'
+    if 'newton' in extra:
+        config['os']['release'] = 'newton'
 if 'dishypcon' in extra:
     config['os']['hyperconverged'] = False
 
index 1e759ff..80b6b3d 100755 (executable)
@@ -229,13 +229,15 @@ elif [ "nosdn" == "$opnfvsdn" ]; then
     neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net \
                                              --router:external=True \
                                              --provider:network_type flat \
-                                              --provider:physical_network external
+                                              --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 \
        --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
 else
-    neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net --router:external=True
+    neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net --router:external=True \
+                                                         --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 \
        --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET