Skip to contentSkip to conversation

Fix vnets in xm

PATCH In review Mike Wray 2 participants 2 messages Aug 26, 2005

lore
Share & tools
lore

Mike Wray

author
#0 lore raw

PATCH 1/1 Fix vnets in xm

The removal of 'xm call' to call a xend interface function directly made the xend vnet functions inaccessible. This patch adds those functions to xm and fixes the persistence in XmVnet to use xenstore.

tools/python/xen/util/Brctl.py +1 -0
diff -r 9fb0bad776dd tools/python/xen/util/Brctl.py
@@ -76,6 +76,7 @@
 def bridge_del(bridge):
     """Delete a bridge.
     """
+    cmd(CMD_IFCONFIG, '%s down' % bridge)
     cmd(CMD_BRCTL, 'delbr %s' % bridge)
 
 def routes():
tools/python/xen/xend/XendVnet.py +42 -16

105 lines not on this page · raw message

tools/python/xen/xend/server/SrvVnetDir.py +1 -0
diff -r 9fb0bad776dd tools/python/xen/xend/server/SrvVnetDir.py
@@ -19,6 +19,7 @@
 from xen.xend.Args import FormFn
 from xen.xend import PrettyPrint
 from xen.xend import XendVnet
+from xen.xend.XendError import XendError
 
 from xen.web.SrvDir import SrvDir
 
tools/python/xen/xm/main.py +51 -1

70 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Thanks!

Quoted 5 lines · Mike Wray

The removal of 'xm call' to call a xend interface function directly made the xend vnet functions inaccessible. This patch adds those functions to xm and fixes the persistence in XmVnet to use xenstore.