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