[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] stubdoms: parse bridge informations
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1250408704 -3600 # Node ID 00dfe0ea59e82a3be3fcc31a8e773fb7ad53d83c # Parent 5079dd1ff24c3b6b89310553bcdd74dd0e63d1e3 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> --- stubdom/stubdom-dm | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletion(-) diff -r 5079dd1ff24c -r 00dfe0ea59e8 stubdom/stubdom-dm --- a/stubdom/stubdom-dm Sun Aug 16 08:43:50 2009 +0100 +++ b/stubdom/stubdom-dm Sun Aug 16 08:45:04 2009 +0100 @@ -143,11 +143,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 "," >> ${stubdom_configdir}/$domname-dm fi - echo -n "'mac=$vif_mac'" >> ${stubdom_configdir}/$domname-dm + echo -n "'mac=$vif_mac" >> ${stubdom_configdir}/$domname-dm + if [ "$vif_bridge" ] + then + echo -n ",bridge=$vif_bridge'" >> ${stubdom_configdir}/$domname-dm + else + echo -n "'" >> ${stubdom_configdir}/$domname-dm + fi j=$(( $j + 1 )) done echo " ] " >> ${stubdom_configdir}/$domname-dm _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |