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