modfiied to support the new spaces in juju.
[joid.git] / ci / config_tpl / juju2 / bundle_tpl / neutron-ovs.yaml
1     neutron-openvswitch:
2       charm: ./{{ ubuntu.release }}/neutron-openvswitch
3 {% if opnfv.spaces_dict.data is defined %}
4 {% if os.service.bindings %}
5       bindings:
6         data: admin-api
7       options:
8 {% else %}
9       options:
10 {% endif %}
11 {% else %}
12       options:
13 {% endif %}
14 {% if os.network.dpdk %}
15         enable-dpdk: true
16         #dpdk-driver: uio_pci_generic
17         #data-port: ""
18         #default-socket-memory: 1024
19         #default-socket-cores: 1
20 {% endif %}
21 {% if opnfv.ext_port is defined  %}
22 {% if os.network.controller == 'nosdn' %}
23 {% if opnfv.data_port is defined  %}
24         bridge-mappings: physnet1:br-ex physnet2:br-data
25         data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
26 {% else %}
27         bridge-mappings: physnet1:br-ex
28         data-port: br-ex:{{ opnfv.ext_port }}
29 {% endif %}
30 {% else %}
31         ext-port: {{ opnfv.ext_port }}
32 {% endif %}
33 {% endif %}
34 {# Empty block to avoid bad block trim #}