blob: 6b56b69d5be2235dafa0db27330133fb7c44af99 [file] [log] [blame]
sgudz696e9c22018-04-24 13:42:56 +03001{#- 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 vhost0:
12 mtu: 9000
13 address: ${_param:_esc}{_param:tenant_address}
14 netmask: ${_param:_esc}{_param:tenant_network_netmask}
15 enabled: true
16 proto: static
17 type: eth
18 pre_up_cmds:
19 - /usr/lib/contrail/if-vhost0
20 name_servers:
21 - ${_param:_esc}{_param:dns_server01}
22 - ${_param:_esc}{_param:dns_server02}
23 {{- set_param('compute_vrouter_dpdk_pci', interface['dpdk_pci']) }}
24 {{- set_param('compute_vrouter_dpdk_mac_address', interface['dpdk_mac']) }}
25 use_interfaces:
26 - {{ interface_name }}
27 post_up_cmds:
28 - ip link set vhost0 address ${_param:_esc}{_param:compute_vrouter_dpdk_mac_address}
29 {%- endfor %}