adding support for Newton and correct provide type.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / neutron-api.yaml
1     neutron-api:
2       charm: "./{{ ubuntu.release }}/neutron-api"
3       num_units: {{ unit_qty() }}
4       options:
5         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
6         region: {{ os.region }}
7         neutron-security-groups: true
8 {% if os.beta.public_api %}
9         use-internal-endpoints: true
10 {% endif %}
11 {% if os.network.ipv6 %}
12         prefer-ipv6: {{ os.network.ipv6 }}
13 {% endif %}
14 {% if os.api.worker_multiplier %}
15         worker-multiplier: {{ os.api.worker_multiplier }}
16 {% endif %}
17 {% if os.ha.mode == 'ha' %}
18         vip: {{ opnfv.vip.neutron }}
19 {% endif %}
20 {% if os.network.controller == 'nosdn' %}
21         flat-network-providers: physnet1
22 {% if os.network.dvr %}
23         overlay-network-type: vxlan
24 {% endif %}
25 {% elif os.network.controller == 'odl' %}
26         manage-neutron-plugin-legacy-mode: False
27         flat-network-providers: physnet1
28 {% elif os.network.controller == 'onos' %}
29         flat-network-providers: physnet1
30         manage-neutron-plugin-legacy-mode: False
31 {% endif %}
32 {% if os.beta.public_api %}
33         os-public-hostname: api.{{ opnfv.domain }}
34 {% endif %}
35 {% if os.network.dvr %}
36         enable-dvr: true
37 {% endif %}
38 {% if os.network.l2_population %}
39         l2-population: true
40 {% endif %}
41       to:
42 {% for unit_id in to_select() %}
43         - "lxd:nodes/{{ unit_id }}"
44 {% endfor %}