routing/roles/interfaces/templates/60-persistent-net.rules.j2
2024-09-15 09:42:20 +02:00

6 lines
273 B
Django/Jinja

{% for iface in net_interfaces %}
{% if iface.name is defined and iface.mac is defined %}
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="{{ iface.mac }}", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="e*", NAME="{{ iface.name }}"
{% endif %}
{% endfor %}