2011-11-08 21:45:47 +01:00
|
|
|
# HG changeset patch
|
|
|
|
# User Jim Fehlig <jfehlig@suse.com>
|
|
|
|
# Date 1319581952 21600
|
|
|
|
# Node ID 74da2a3a1db1476d627f42e4a99e9e720cc6774d
|
|
|
|
# Parent 6c583d35d76dda2236c81d9437ff9d57ab02c006
|
|
|
|
Prevent vif-bridge from adding user-created tap interfaces to a bridge
|
|
|
|
|
|
|
|
Exit vif-bridge script if there is no device info in xenstore, preventing
|
|
|
|
it from adding user-created taps to bridges.
|
|
|
|
|
|
|
|
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
|
|
|
|
|
2012-09-17 17:49:23 +02:00
|
|
|
Index: xen-4.2.0-testing/tools/hotplug/Linux/vif-bridge
|
2012-03-05 21:59:08 +01:00
|
|
|
===================================================================
|
2012-09-17 17:49:23 +02:00
|
|
|
--- xen-4.2.0-testing.orig/tools/hotplug/Linux/vif-bridge
|
|
|
|
+++ xen-4.2.0-testing/tools/hotplug/Linux/vif-bridge
|
2012-03-05 21:59:08 +01:00
|
|
|
@@ -32,6 +32,13 @@
|
2011-11-08 21:45:47 +01:00
|
|
|
dir=$(dirname "$0")
|
|
|
|
. "$dir/vif-common.sh"
|
2012-03-05 21:59:08 +01:00
|
|
|
|
|
|
|
+mac=$(xenstore_read_default "$XENBUS_PATH/mac" "")
|
|
|
|
+if [ -z "$mac" ]
|
2011-11-08 21:45:47 +01:00
|
|
|
+then
|
|
|
|
+ log debug "No device details in $XENBUS_PATH, exiting."
|
|
|
|
+ exit 0
|
|
|
|
+fi
|
2012-03-05 21:59:08 +01:00
|
|
|
+
|
2011-11-08 21:45:47 +01:00
|
|
|
bridge=${bridge:-}
|
|
|
|
bridge=$(xenstore_read_default "$XENBUS_PATH/bridge" "$bridge")
|
2012-03-05 21:59:08 +01:00
|
|
|
|