modified to made an option to support spaces as per JUJU 2.0
[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
7 {% if opnfv.spaces_dict.data is defined %}
8         admin: admin
9 {% else %}
10         admin: internal
11 {% endif %}
12 {% if opnfv.spaces_dict.public is defined %}
13         public: public
14 {% else %}
15         public: internal
16 {% endif %}
17 {% endif %}
18       options:
19         openstack-origin: "cloud:{{ ubuntu.release }}-{{ os.release }}"
20         region: {{ os.region }}
21         neutron-security-groups: true
22 {% if os.beta.public_api %}
23         use-internal-endpoints: true
24 {% endif %}
25 {% if os.network.ipv6 %}
26         prefer-ipv6: {{ os.network.ipv6 }}
27 {% endif %}
28 {% if os.api.worker_multiplier %}
29         worker-multiplier: {{ os.api.worker_multiplier }}
30 {% endif %}
31 {% if os.ha.mode == 'ha' %}
32         vip: {{ opnfv.vip.neutron }}
33 {% endif %}
34 {% if os.network.controller == 'nosdn' %}
35         flat-network-providers: physnet1
36 {% if os.network.dvr %}
37         overlay-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 %}