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