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] network-bridge: Fall back to eth0/xenbr0 if no default r

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] network-bridge: Fall back to eth0/xenbr0 if no default route.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 01 Jun 2006 12:08:37 +0000
Delivery-date: Thu, 01 Jun 2006 05:14:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kfraser@xxxxxxxxxxxxxxxxxxxxxxx
# Node ID 275955c6df9dc09bd60728247cfe01c47396a01a
# Parent  2a0208b33c3075d770ffaa647137432efd3b8eb9
network-bridge: Fall back to eth0/xenbr0 if no default route.
From: Dave Lively <dave.lively@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/examples/network-bridge |    1 +
 1 files changed, 1 insertion(+)

diff -r 2a0208b33c30 -r 275955c6df9d tools/examples/network-bridge
--- a/tools/examples/network-bridge     Thu Jun 01 11:04:06 2006 +0100
+++ b/tools/examples/network-bridge     Thu Jun 01 11:18:26 2006 +0100
@@ -60,6 +60,7 @@ evalVariables "$@"
 evalVariables "$@"
 
 vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed 
's/^[^0-9]*//')}
+vifnum={$vifnum:-0}
 bridge=${bridge:-xenbr${vifnum}}
 netdev=${netdev:-eth${vifnum}}
 antispoof=${antispoof:-no}

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] network-bridge: Fall back to eth0/xenbr0 if no default route., Xen patchbot-unstable <=