|
|
@ -195,7 +195,22 @@ interfaces {
|
|
|
|
{% elif iface_data.get('type',{}).get('label','') != 'Virtual' %}
|
|
|
|
{% elif iface_data.get('type',{}).get('label','') != 'Virtual' %}
|
|
|
|
ethernet {{ iface_name }} {
|
|
|
|
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 %}"
|
|
|
|
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'] %}
|
|
|
|
{% for address in iface_data['addresses'] %}
|
|
|
|
address {{ address['address'] }}
|
|
|
|
address {{ address['address'] }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|