From dbbb25895e70ce118dd7e4fd5cf6ecd9d09df543 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 27 Oct 2010 11:04:31 -0700 Subject: Don't rename vif and other non-driver interfaces Bug 6379 Just leave vlan and other pseudo-interface names alone. --- sysconf/65-vyatta-net.rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sysconf') diff --git a/sysconf/65-vyatta-net.rules b/sysconf/65-vyatta-net.rules index 1372110f..a2ae654c 100644 --- a/sysconf/65-vyatta-net.rules +++ b/sysconf/65-vyatta-net.rules @@ -8,6 +8,12 @@ SUBSYSTEM!="net", GOTO="vyatta_net_end" NAME=="?*", GOTO="vyatta_net_end" # Do name change for ethernet and wireless devices only -KERNEL=="eth*|wlan*", PROGRAM="vyatta_net_name %k $attr{address}", NAME="%c" +KERNEL!="eth*|wlan*", GOTO="vyatta_net_end" + +# ignore "secondary" monitor interfaces of mac80211 drivers +KERNEL=="wlan*", ATTRS{type}=="803", GOTO="persistent_net_generator_end" + +# ignore interfaces without a driver link like bridges and VLANs +DRIVERS=="?*", PROGRAM="vyatta_net_name %k $attr{address}", NAME="%c" LABEL="vyatta_net_end" -- cgit v1.2.3