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