fix for generating deploy.yaml if data network not defined. 89/17889/2
authorNarinder Gupta <narinder.gupta@canonical.com>
Mon, 1 Aug 2016 18:06:48 +0000 (13:06 -0500)
committerNarinder Gupta <narinder.gupta@canonical.com>
Mon, 1 Aug 2016 19:43:38 +0000 (14:43 -0500)
Change-Id: I4b7be1cbbf55f2ba5ea40735c775c9c0c2eb4d40
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/bundle_tpl/neutron-api.yaml
ci/bundle_tpl/neutron-gateway.yaml
ci/bundle_tpl/neutron-ovs.yaml

index 053b6ff..9ee914a 100644 (file)
@@ -5,7 +5,9 @@
         neutron-security-groups: true
 {% if os.network.controller == 'nosdn' %}
         flat-network-providers: "*"
-        #overlay-network-type: gre vxlan
+{% if os.network.dvr %}
+        overlay-network-type: vxlan
+{% endif %}
 {% elif os.network.controller == 'odl' %}
         manage-neutron-plugin-legacy-mode: False
 {% elif os.network.controller == 'onos' %}
index 5b26ac5..fd62764 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 opnfv.ext_port is defined  %}
         ext-port: {{ opnfv.ext_port }}
index a5b9253..c0d3468 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
@@ -13,4 +11,9 @@
         #default-socket-memory: 1024
         #default-socket-cores: 1
 {% endif %}
+{% if opnfv.ext_port is defined  %}
+{% if os.network.dvr %}
+        ext-port: {{ opnfv.ext_port }}
+{% endif %}
+{% endif %}
 {# Empty block to avoid bad block trim #}