From 4f6faa2ba6510c01165b18ce8315cd7049a15783 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 25 Feb 2011 11:20:58 -0800 Subject: Workaround Xen NIC address Bug 6837 Xen does not behave like normal hardware. It assigns a random MAC address (with local bit set). --- scripts/system/vyatta_interface_rescan | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/system/vyatta_interface_rescan b/scripts/system/vyatta_interface_rescan index e93bbdfc..5b72a480 100755 --- a/scripts/system/vyatta_interface_rescan +++ b/scripts/system/vyatta_interface_rescan @@ -55,6 +55,8 @@ sub persistent_address { return 1 unless ($oct0 & 0x2); # this is good, not locally assigned + return 1 if ( -d '/proc/xen' ); # workaround Xen breakage + # unless it is in whitelist, it is non persistent $mac =~ /^([0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f])/; return $whitelist{$1}; -- cgit v1.2.3