adding support for Newton and correct provide type.
[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-ex physnet2:br-data
16         data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
17 {% else %}
18         bridge-mappings: physnet1: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 {% if opnfv.data_port is defined  %}
40         bridge-mappings: physnet1:br-ex physnet2:br-data
41         data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
42 {% else %}
43         bridge-mappings: physnet1:br-ex
44         data-port: br-ex:{{ opnfv.ext_port }}
45 {% endif %}
46 {% endif %}
47 {% else %}
48 {% if opnfv.ext_port is defined  %}
49         ext-port: {{ opnfv.ext_port }}
50 {% endif %}
51 {% endif %}
52         instance-mtu: 1400
53       to:
54         - "nodes/0"
55 {# Empty block to avoid bad block trim #}