diff --git a/vyos.conf.j2 b/vyos.conf.j2 index b8ca050..7c1dc2a 100644 --- a/vyos.conf.j2 +++ b/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 %}