[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools/hotplug/NetBSD: update netbsd scripts (interface names)



# HG changeset patch
# User Christoph Egger <Christoph.Egger@xxxxxxx>
# Date 1295285484 0
# Node ID c281e9c58146c5f36c2748b00839db0e57ec462a
# Parent  f8d801e5573ee7bb4071ca3611f85b2f78036de6
tools/hotplug/NetBSD: update netbsd scripts (interface names)

sysctl fail due to the '.' in the interface name:

Jan 10 00:02:26 paris /netbsd: xvif108.0: could not attach sysctl nodes
Jan 10 00:02:57 paris /netbsd: sysctl_createv: sysctl_create(xvif108.0)
returned 22

The kernel driver have recently been fixed and attached patch updates
to the hotplug scripts accordingly.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/hotplug/NetBSD/vif-bridge |    2 +-
 tools/hotplug/NetBSD/vif-ip     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r f8d801e5573e -r c281e9c58146 tools/hotplug/NetBSD/vif-bridge
--- a/tools/hotplug/NetBSD/vif-bridge   Mon Jan 17 17:28:30 2011 +0000
+++ b/tools/hotplug/NetBSD/vif-bridge   Mon Jan 17 17:31:24 2011 +0000
@@ -23,7 +23,7 @@ 2)
        xbridge=$(xenstore-read "$xpath/bridge")
        xfid=$(xenstore-read "$xpath/frontend-id")
        xhandle=$(xenstore-read "$xpath/handle")
-       iface=xvif$xfid.$xhandle
+       iface=$(xenstore-read "$xpath/vifname")
        echo ifconfig $iface up
        ifconfig $iface up
        brconfig $xbridge add $iface
diff -r f8d801e5573e -r c281e9c58146 tools/hotplug/NetBSD/vif-ip
--- a/tools/hotplug/NetBSD/vif-ip       Mon Jan 17 17:28:30 2011 +0000
+++ b/tools/hotplug/NetBSD/vif-ip       Mon Jan 17 17:31:24 2011 +0000
@@ -23,7 +23,7 @@ 2)
        xip=$(xenstore-read "$xpath/ip")
        xfid=$(xenstore-read "$xpath/frontend-id")
        xhandle=$(xenstore-read "$xpath/handle")
-       iface=xvif$xfid.$xhandle
+       iface=$(xenstore-read "$xpath/vifname")
        echo ifconfig $iface $xip up
        ifconfig $iface $xip up
        xenstore-write $xpath/hotplug-status connected

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.