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