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