From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Ostrowski Subject: Re: BUG? domu network interface configuration Date: Wed, 31 Aug 2005 08:42:30 -0400 Message-ID: <20050831084230.0115fd39@brick.watson.ibm.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1792386235==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt Cc: Ted Kaczmarek , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1792386235== Content-Type: multipart/signed; boundary="Signature_Wed__31_Aug_2005_08_42_30_-0400_uJiQYYXTdpKLiY=v"; protocol="application/pgp-signature"; micalg=pgp-sha1 --Signature_Wed__31_Aug_2005_08_42_30_-0400_uJiQYYXTdpKLiY=v Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable The immediate problem is in fact that vif-bridge is being called instead of= =20 vif-route. I'm working on something like the following to detect the script:=20 SCRIPT=3D/bin/false if [ -r $CONFIG_FILE ]; then SCRIPT=3D$(sed -e '/^[^#]*vif-script/!d;s/^(vif-script *\([^ )]*\)).*$/= \1/' \ $CONFIG_FILE) fi if [ -z "`which $SCRIPT`" ] ; then # not in path, should probably log an error exit fi As you can see, sxp is not very script friendly. Having been able to call vif-route, is just the beginning of the real probl= ems... Once I'm in vif-route I need to get the IP address that I assigned to the p= artition. To get that I need to figure out the domain id. (I suppose I could guess t= hat from=20 the device name.) Then I need to find the SXP config file in xenstore (and now I need a tool to parse it and extract the "(ip a.b.c.d)" statement), but I don't see a way of doing that because there seem to be no scripting tools to access xenstore. Now, even if I did have such a tool, I don't see a way of going from domain id to uuid, which is what I think I need in order to interact with xenstore. --=20 Michal Ostrowski On Wed, 31 Aug 2005 13:01:29 +0100 "Ian Pratt" wrote: > =20 > > > One fix would be for you to just hack the hotplug script. Another,=20 > > > slightly better, way would be to grep around in xend's=20 > > config script=20 > > > to find out what script should be run, and call that. We might even=20 > > > take that as an interim patch. >=20 > Can you confirm that things work OK if you rename vif-route to > vif-bridge?=20 >=20 > > Any idea when this would be implemented? >=20 > Getting this cleaned up is important. >=20 > Ian --Signature_Wed__31_Aug_2005_08_42_30_-0400_uJiQYYXTdpKLiY=v Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFDFaW2DMDCqU5zPMARAo82AJ9za6cJ2Ko5iODVW+BpzH6+O25tLACfRFfw DobPt+EOhuYCSU5JpUYIGyA= =R6VM -----END PGP SIGNATURE----- --Signature_Wed__31_Aug_2005_08_42_30_-0400_uJiQYYXTdpKLiY=v-- --===============1792386235== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1792386235==--