cmodfiied to add juju 2.0 support.
[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: "*"
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 {% elif os.network.controller == 'onos' %}
28         flat-network-providers: "*"
29         manage-neutron-plugin-legacy-mode: False
30 {% endif %}
31 {% if os.beta.public_api %}
32         os-public-hostname: api.{{ opnfv.domain }}
33 {% endif %}
34 {% if os.network.dvr %}
35         enable-dvr: true
36 {% endif %}
37 {% if os.network.l2_population %}
38         l2-population: true
39 {% endif %}
40       to:
41 {% for unit_id in to_select() %}
42         - "lxd:nodes/{{ unit_id }}"
43 {% endfor %}