pkgsrc/sysutils/xentools46/patches/patch-hotplug_NetBSD_vif-bridge
jnemeth 2ccc347bbb The Xen virtual machine monitor allows running several virtual machines
on a single physical machine.  The xentools46 package contains the
tools to create, destroy and control the virtual machines.

This package contains the tools for Xen 4.6.x
2016-07-04 07:30:47 +00:00

16 lines
631 B
Text

$NetBSD: patch-hotplug_NetBSD_vif-bridge,v 1.1.1.1 2016/07/04 07:30:51 jnemeth Exp $
--- hotplug/NetBSD/vif-bridge.orig 2015-01-12 17:53:24.000000000 +0100
+++ hotplug/NetBSD/vif-bridge 2015-01-19 13:16:37.000000000 +0100
@@ -23,7 +23,10 @@
xbridge=$(xenstore-read "$xpath/bridge")
xfid=$(xenstore-read "$xpath/frontend-id")
xhandle=$(xenstore-read "$xpath/handle")
- iface=$(xenstore-read "$xpath/vifname")
+ iface=$(xenstore-read "$xpath/vifname") || true
+ if [ x${iface} = "x" ] ; then
+ iface=xvif$xfid.$xhandle
+ fi
ifconfig $iface up
brconfig $xbridge add $iface
xenstore-write $xpath/hotplug-status connected