cmodfiied to add juju 2.0 support.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / neutron-gateway.yaml
1     neutron-gateway:
2       charm: "./{{ ubuntu.release }}/neutron-gateway"
3       num_units: 1
4       options:
5         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
6 {% if os.api.worker_multiplier %}
7         worker-multiplier: {{ os.api.worker_multiplier }}
8 {% endif %}
9 {% if opnfv.spaces_dict.data is defined %}
10         os-data-network: {{ opnfv.spaces_dict.data.cidr }}
11 {% endif %}
12 {% if os.network.controller == 'nosdn' %}
13 {% if opnfv.ext_port is defined  %}
14 {% if opnfv.data_port is defined  %}
15         bridge-mappings: physnet1:br-data external:br-ex
16         data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
17 {% else %}
18         bridge-mappings: external:br-ex
19         data-port: br-ex:{{ opnfv.ext_port }}
20 {% endif %}
21 {% endif %}
22 {% elif os.network.controller == 'onos' %}
23         plugin: onos
24 {% if opnfv.ext_port is defined  %}
25 {% if opnfv.data_port is defined  %}
26         bridge-mappings: physnet1:br-data external:br-ex
27         data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
28 {% else %}
29         bridge-mappings: external:br-ex
30         data-port: br-ex:{{ opnfv.ext_port }}
31 {% endif %}
32 {% endif %}
33 {% if os.network.sfc %}
34         profile: onos-sfc
35 {% endif %}
36 {% elif os.network.controller == 'odl' %}
37         plugin: ovs-odl
38 {% if opnfv.ext_port is defined  %}
39         ext-port: {{ opnfv.ext_port }}
40 {% endif %}
41 {% else %}
42 {% if opnfv.ext_port is defined  %}
43         ext-port: {{ opnfv.ext_port }}
44 {% endif %}
45 {% endif %}
46         instance-mtu: 1400
47       to:
48         - "nodes/0"
49 {# Empty block to avoid bad block trim #}