add offloads and ringbuffers

master
Marek Isalski 3 years ago
parent dc7b072d9e
commit 043f4a9010

@ -195,7 +195,22 @@ interfaces {
{% elif iface_data.get('type',{}).get('label','') != 'Virtual' %}
ethernet {{ iface_name }} {
description "{{ iface_data['description'].replace('"','\\"') or "-" }}{% if iface_data['connected_endpoint'] and iface_data['connected_endpoint']['device'] %} ({% if iface_data['connected_endpoint']['device'] %}{{ iface_data['connected_endpoint']['name'] }} @ {{ iface_data['connected_endpoint']['device']['display'] }}{% endif %}){% endif %}"
{% if 'vrf' in salt['pillar.get']('interfaces:'+iface_name,{}) %}vrf {{ salt['pillar.get']('interfaces:'+iface_name+':vrf') }}{% endif %}
{% if 'vrf' in salt['pillar.get']('interfaces:'+iface_name,{}) %}
vrf {{ salt['pillar.get']('interfaces:'+iface_name+':vrf') }}
{% else %}
offload {
gro
gso
rps
sg
tso
ufo
}
ring-buffer {
rx 4096
tx 4096
}
{% endif %}
{% for address in iface_data['addresses'] %}
address {{ address['address'] }}
{% endfor %}

Loading…
Cancel
Save