Timotej Lazar
7b4cb8f579
Gonna include BMC and such but shouldn’t hurt. Allows us to use different interface names where sensible.
4 lines
205 B
Django/Jinja
4 lines
205 B
Django/Jinja
{% for iface in hostvars[inventory_hostname].interfaces | selectattr('mac_address') %}
|
|
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="{{ iface.mac_address|lower }}", NAME="{{ iface.name }}"
|
|
{% endfor %}
|