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] vifname?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] vifname?
From: PAINCHAUD Christophe <cpainchaud@xxxxxxxxxxx>
Date: Thu, 8 Dec 2005 19:43:39 +0100
Delivery-date: Thu, 08 Dec 2005 18:44:46 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

>Is it possible to edit the scripts to name the vif based on the
>domain's name rather than its id number (which changes)?

It looks like you can't, here is the 'env' output for vif-bridge script:
SUBSYSTEM=xen-backend
XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-15-0
XENBUS_FRONTEND_ID=15
script=/etc/xen/scripts/vif-bridge
vif=vif15.0
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/etc/xen/scripts:/bin:/sbin:/usr/sbin:/usr/bin
ACTION="">
PWD=/etc/hotplug
LANG=POSIX
XENBUS_PATH=backend/vif/15/0
XENBUS_BASE_PATH=backend/vif
HOME=/
SHLVL=3
PHYSDEVDRIVER=vif
PHYSDEVBUS=xen-backend
SEQNUM=975
_=/usr/bin/env

As far as I can understand it, the interface name is set in environment, but it looks like it's already created before this script is invoked. I checked all other scripts and none of them seems to launch vif-bridge. So my last guess is it's in xend python sources.

I would like to name vif as I wish too, so I would be interested if anyone got a solution.

Christophe PAINCHAUD


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>