Browse Source

network/udev-rules.tmpl: sort interfaces

Karsten Böddeker 7 years ago
parent
commit
725b81dd66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      network/udev-rules.tmpl

+ 1 - 1
network/udev-rules.tmpl

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