blob: 607230278d1d53c961294d355f513a557e1603f5 [file] [log] [blame]
abaraniukab1c93e2018-11-27 17:41:51 +02001{#- DPDK interface params for vrouter #}
2{#- Requires: #}
3{#- _param:compute_vrouter_dpdk_mac_address #}
4{#- _param:compute_vrouter_dpdk_pci #}
5{#- Provides: #}
6{#- Requirements: #}
7{#- _param:tenant_address #}
8{#- _param:tenant_network_netmask #}
9 # {{ interfaces_role }}
10 {%- for interface_name, interface in interfaces.items() %}
11 {{ interface_name }}:
12 enabled: true
13 name: {{ interface_name }}
14 proto: manual
15 type: eth
16 ipflush_onchange: true
17 {{ interface_name }}.tenant_vlan:
18 name: {{ interface_name }}.${_param:_esc}{_param:tenant_vlan}
19 enabled: true
20 proto: manual
21 type: vlan
22 use_interfaces:
23 - {{ interface_name }}
24 require_interfaces:
25 - {{ interface_name }}
26 vhost0:
27 address: ${_param:_esc}{_param:tenant_address}
28 netmask: ${_param:_esc}{_param:tenant_network_netmask}
29 enabled: true
30 proto: static
31 type: eth
32 pre_up_cmds:
33 - /usr/lib/contrail/if-vhost0
34 name_servers:
35 - ${_param:_esc}{_param:dns_server01}
36 - ${_param:_esc}{_param:dns_server02}
37 {{- set_param('compute_vrouter_dpdk_pci', interface['dpdk_pci']) }}
38 {{- set_param('compute_vrouter_dpdk_mac_address', interface['dpdk_mac']) }}
39 use_interfaces:
40 - {{ interface_name }}
41 post_up_cmds:
42 - ip link set vhost0 address ${_param:_esc}{_param:compute_vrouter_dpdk_mac_address}
43 {%- endfor %}