summaryrefslogtreecommitdiff
path: root/extras/rule_generator
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2010-08-31 21:44:34 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-08-31 21:44:34 +0200
commitaf29bf0966994bc233282148f519e12ea29e1c5a (patch)
treeb9b8d0288116bc002464a72d47c43e30f51c53d9 /extras/rule_generator
parent326c5fc3ea684825629eccaf33a548759162a539 (diff)
do not create persistent name rules for KVM network interfaces
The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48 range of KVM.
Diffstat (limited to 'extras/rule_generator')
-rw-r--r--extras/rule_generator/75-persistent-net-generator.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/rule_generator/75-persistent-net-generator.rules b/extras/rule_generator/75-persistent-net-generator.rules
index a9dfdce7a5..8119d0ea2f 100644
--- a/extras/rule_generator/75-persistent-net-generator.rules
+++ b/extras/rule_generator/75-persistent-net-generator.rules
@@ -29,6 +29,9 @@ ENV{MATCHADDR}="$attr{address}"
# match interface type
ENV{MATCHIFTYPE}="$attr{type}"
+# ignore KVM virtual interfaces
+ENV{MATCHADDR}=="54:52:00:*", GOTO="persistent_net_generator_end"
+
# These vendors are known to violate the local MAC address assignment scheme
# Interlan, DEC (UNIBUS or QBUS), Apollo, Cisco, Racal-Datacom
ENV{MATCHADDR}=="02:07:01:*", GOTO="globally_administered_whitelist"