[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] stubdoms: parse bridge informations



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1256071448 -3600
# Node ID df79861db1253d0a40c4e68efd1ee8906e05ba6a
# Parent  26a05ab5c61a47088852bf49192838ba6646f974
stubdoms: parse bridge informations

Currently the stubdom-dm script doesn't read the bridge of a vif
on xenstore, therefore all the vifs assigned to the stubdom always
belong to default bridge. This patch changes the behavior reading the
bridge from xenstore and adding the bridge to the stubdom config
file.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
xen-unstable changeset:   20069:00dfe0ea59e8
xen-unstable date:        Sun Aug 16 08:45:04 2009 +0100
---
 stubdom/stubdom-dm |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)

diff -r 26a05ab5c61a -r df79861db125 stubdom/stubdom-dm
--- a/stubdom/stubdom-dm        Tue Oct 20 21:43:24 2009 +0100
+++ b/stubdom/stubdom-dm        Tue Oct 20 21:44:08 2009 +0100
@@ -129,11 +129,18 @@ do
     i=${i%\"}
     i=${i#\"}
     vif_mac=`xenstore-read $i/mac`
+    vif_bridge=`xenstore-read $i/bridge`
     if [ $j -ne 0 ]
     then
         echo -n "," >> /etc/xen/stubdoms/$domname-dm
     fi
-    echo -n "'mac=$vif_mac'" >> /etc/xen/stubdoms/$domname-dm
+    echo -n "'mac=$vif_mac" >> /etc/xen/stubdoms/$domname-dm
+    if [ "$vif_bridge" ]
+    then
+        echo -n ",bridge=$vif_bridge'" >> /etc/xen/stubdoms/$domname-dm
+    else
+        echo -n "'" >> /etc/xen/stubdoms/$domname-dm
+    fi
     j=$(( $j + 1 ))
 done
 echo " ] " >> /etc/xen/stubdoms/$domname-dm

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.