udev-rules.tmpl 428 B

12345678910
  1. #
  2. # FFHO net rules (Salt managed)
  3. #
  4. {%- for iface, iface_config in salt['pillar.get']('nodes:' ~ grains['id'] ~ ':ifaces', {}).items ()|sort %}
  5. {%- if '_udev_mac' in iface_config %}
  6. # {{ iface_config.get ('desc', '') }}
  7. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="{{ iface_config.get ('_udev_mac') }}", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="{{ iface }}"
  8. {%- endif %}
  9. {%- endfor %}