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