summaryrefslogtreecommitdiff
path: root/sysconf/vyatta-net.rules
diff options
context:
space:
mode:
authorrbalocca <rbalocca@fugazi.vyatta.com>2007-12-18 14:18:21 -0800
committerrbalocca <rbalocca@fugazi.vyatta.com>2007-12-18 14:18:21 -0800
commit7a4610e0fb11946ba40ac1fe1eafbddd39a15e48 (patch)
tree7f9dace2de1c4881b2cbbaa7e36fbf61c74bf8eb /sysconf/vyatta-net.rules
parent94fbe9b07d0f556fcd2d9bcb3b7e00a1fb2df16b (diff)
parentc30fc4752c878c12255101aa928c64f7a3511020 (diff)
downloadvyatta-cfg-system-7a4610e0fb11946ba40ac1fe1eafbddd39a15e48.tar.gz
vyatta-cfg-system-7a4610e0fb11946ba40ac1fe1eafbddd39a15e48.zip
Merge branch 'master' into glendale
Diffstat (limited to 'sysconf/vyatta-net.rules')
-rw-r--r--sysconf/vyatta-net.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysconf/vyatta-net.rules b/sysconf/vyatta-net.rules
new file mode 100644
index 00000000..31901b42
--- /dev/null
+++ b/sysconf/vyatta-net.rules
@@ -0,0 +1,13 @@
+# These rules use vyatta_net_name to persistently name network interfaces
+# per "hwid" association with the interface block of the vyatta config file.
+
+ACTION!="add", GOTO="vyatta_net_end"
+SUBSYSTEM!="net", GOTO="vyatta_net_end"
+
+# ignore interfaces without a driver link like bridges and VLANs
+KERNEL=="eth*|ath*|wlan*|ra*|sta*|ctc*|lcs*|hsi*", DRIVERS=="?*",\
+ PROGRAM="vyatta_net_name %k $attr{address}", \
+ NAME="%c"
+
+LABEL="vyatta_net_end"
+