few more corrections of deployment and enabling interface within
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / neutron-gateway.yaml
index 2f9e9ab..f0416a7 100644 (file)
@@ -1,14 +1,20 @@
     neutron-gateway:
       charm: "./{{ ubuntu.release }}/neutron-gateway"
       num_units: 1
+{% if os.service.bindings %}
+{% if opnfv.spaces_dict.data is defined %}
+      bindings:
+        data: admin-api
+{% else %}
+      bindings:
+        data: internal-api
+{% endif %}
+{% endif %}
       options:
         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
 {% if os.api.worker_multiplier %}
         worker-multiplier: {{ os.api.worker_multiplier }}
 {% endif %}
-{% if opnfv.spaces_dict.data is defined %}
-        os-data-network: {{ opnfv.spaces_dict.data.cidr }}
-{% endif %}
 {% if os.network.controller == 'nosdn' %}
 {% if opnfv.ext_port is defined  %}
 {% if opnfv.data_port is defined  %}