WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] stubdoms: parse bridge informations
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Oct 2009 13:45:12 -0700
Delivery-date: Tue, 20 Oct 2009 13:45:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] stubdoms: parse bridge informations, Xen patchbot-3.4-testing <=