summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-02-25 11:20:58 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-02-25 11:20:58 -0800
commit4f6faa2ba6510c01165b18ce8315cd7049a15783 (patch)
tree2399f09a8bbea8eb6ce3c89d1a49d87943c6a584 /scripts
parent1a083f360f9eeb0f449f3580944f4996ce6ecff4 (diff)
downloadvyatta-cfg-quagga-4f6faa2ba6510c01165b18ce8315cd7049a15783.tar.gz
vyatta-cfg-quagga-4f6faa2ba6510c01165b18ce8315cd7049a15783.zip
Workaround Xen NIC address
Bug 6837 Xen does not behave like normal hardware. It assigns a random MAC address (with local bit set).
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system/vyatta_interface_rescan2
1 files changed, 2 insertions, 0 deletions
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};