Merge "Fix adding cloud-archive:newton issue in Ubuntu 16.04"
[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 {% if os.git_repo.origin_git %}
18         openstack-origin-git: "{{ os.git_repo.branch }}"
19 {% endif %}
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 {% else %}
39         overlay-network-type: vxlan gre
40         default-tenant-network-type: vxlan
41 {% endif %}
42 {% elif os.network.controller == 'odl' %}
43         manage-neutron-plugin-legacy-mode: False
44         flat-network-providers: physnet1
45 {% elif os.network.controller == 'onos' %}
46         flat-network-providers: physnet1
47         manage-neutron-plugin-legacy-mode: False
48 {% endif %}
49 {% if os.beta.public_api %}
50         os-public-hostname: api.{{ opnfv.domain }}
51 {% endif %}
52 {% if os.network.dvr %}
53         enable-dvr: true
54 {% endif %}
55 {% if os.network.l2_population %}
56         l2-population: true
57 {% endif %}
58       to:
59 {% for unit_id in to_select() %}
60         - "lxd:nodes/{{ unit_id }}"
61 {% endfor %}