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-users

Re: [Xen-users] Networking not coming up on dom)

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Networking not coming up on dom)
From: "Ulrich Windl" <ulrich.windl@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 02 Feb 2007 15:43:49 +0100
Delivery-date: Fri, 02 Feb 2007 06:44:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45C324B0.6040304@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Universitaet Regensburg, Klinikum
Priority: normal
References: <45C23E2D.9080600@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 2 Feb 2007 at 6:46, Jim wrote:

> vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed 
> 's/^[^0-9]*//')}

Without knowing the details, it might seem that
sed -s 's/^.*\([0-9][0-9]*\).*$/\1/' is closer to the expected behavior.

> 
> vifnum will contain a zero and a one separated by a newline.  This 
> causes the script to fail sort of siliently.  I hardcoded vifnum to 1 
> and all is working fine.
> 
> I find this a bit surprising since I know there are people running 
> multiple ethernet ports successfully. 
> 
> So this is a bug?  If so, is it a ubuntu  or xen bug?
> 
> Thanks,
> Jim.
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users



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

<Prev in Thread] Current Thread [Next in Thread>