modified templates and added variable to easlity understand the
[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 {% if os.beta.public_api %}
20         use-internal-endpoints: True
21 {% endif %}
22         worker-multiplier: *worker-multiplier
23 {% if os.network.ipv6 %}
24         prefer-ipv6: {{ os.network.ipv6 }}
25 {% endif %}
26 {% if os.ha.mode == 'ha' %}
27         vip: {{ opnfv.vip.neutron }}
28 {% endif %}
29 {% if os.network.controller == 'nosdn' %}
30         flat-network-providers: physnet1
31 {% if os.network.dvr %}
32         overlay-network-type: vxlan
33 {% else %}
34         overlay-network-type: vxlan gre
35         default-tenant-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 %}