c7789d82e6b78123c4b6547bc5b45c97cdc46762
[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       bindings:
5         internal: internal
6 {% if opnfv.spaces_dict.data is defined %}
7         admin: admin
8 {% else %}
9         admin: internal
10 {% endif %}
11 {% if opnfv.spaces_dict.public is defined %}
12         public: public
13 {% else %}
14         public: internal
15 {% endif %}
16       options:
17         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
18         region: {{ os.region }}
19         neutron-security-groups: true
20 {% if os.beta.public_api %}
21         use-internal-endpoints: true
22 {% endif %}
23 {% if os.network.ipv6 %}
24         prefer-ipv6: {{ os.network.ipv6 }}
25 {% endif %}
26 {% if os.api.worker_multiplier %}
27         worker-multiplier: {{ os.api.worker_multiplier }}
28 {% endif %}
29 {% if os.ha.mode == 'ha' %}
30         vip: {{ opnfv.vip.neutron }}
31 {% endif %}
32 {% if os.network.controller == 'nosdn' %}
33         flat-network-providers: physnet1
34 {% if os.network.dvr %}
35         overlay-network-type: vxlan
36 {% endif %}
37 {% elif os.network.controller == 'odl' %}
38         manage-neutron-plugin-legacy-mode: False
39         flat-network-providers: physnet1
40 {% elif os.network.controller == 'onos' %}
41         flat-network-providers: physnet1
42         manage-neutron-plugin-legacy-mode: False
43 {% endif %}
44 {% if os.beta.public_api %}
45         os-public-hostname: api.{{ opnfv.domain }}
46 {% endif %}
47 {% if os.network.dvr %}
48         enable-dvr: true
49 {% endif %}
50 {% if os.network.l2_population %}
51         l2-population: true
52 {% endif %}
53       to:
54 {% for unit_id in to_select() %}
55         - "lxd:nodes/{{ unit_id }}"
56 {% endfor %}