add offloads and ringbuffers
This commit is contained in:
parent
dc7b072d9e
commit
043f4a9010
17
vyos.conf.j2
17
vyos.conf.j2
@ -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…
x
Reference in New Issue
Block a user