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

[Xen-changelog] g/c introduceDomain and releaseDomain bindings in xsnode and xsobj.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID c1450b657edee38900be111a8aa71f66c04a49ea
# Parent  26cf3cfd3bedcc958baaa3366cb804efd2b3e457
g/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 26cf3cfd3bed -r c1450b657ede tools/python/xen/xend/xenstore/xsnode.py
--- a/tools/python/xen/xend/xenstore/xsnode.py  Tue Sep 13 17:31:13 2005
+++ b/tools/python/xen/xend/xenstore/xsnode.py  Tue Sep 13 17:32:59 2005
@@ -365,18 +365,6 @@
         finally:
             self.watchThread = None
 
-    def introduceDomain(self, dom, page, evtchn, path):
-        try:
-            self.getxs().introduce_domain(dom, page, evtchn.port1, path)
-        except RuntimeError, ex:
-            if ex.args[0] == errno.EISCONN:
-                return None
-            else:
-                raise
-
-    def releaseDomain(self, dom):
-        self.getxs().release_domain(dom)
-
 def getXenStore():
     global xenstore
     try:
@@ -461,12 +449,6 @@
     def ls(self):
         return self.store.ls(self.path)
 
-    def introduceDomain(self, dom, page, evtchn, path):
-        self.store.introduceDomain(dom, page, evtchn, path)
-        
-    def releaseDomain(self, dom):
-        self.store.releaseDomain(dom)
-
     def watch(self, fn, path=""):
         """Watch a path for changes. The path is relative
         to the node and defaults to the node itself.
diff -r 26cf3cfd3bed -r c1450b657ede tools/python/xen/xend/xenstore/xsobj.py
--- a/tools/python/xen/xend/xenstore/xsobj.py   Tue Sep 13 17:31:13 2005
+++ b/tools/python/xen/xend/xenstore/xsobj.py   Tue Sep 13 17:32:59 2005
@@ -319,30 +319,6 @@
     def getPath(self):
         return self.__db__ and self.__db__.relPath()
 
-    def introduceDomain(self, dom, page, evtchn, path=None):
-        db = self.__db__
-        if path is None:
-            path = db.relPath()
-        log.info("DBMap>introduceDomain> %d %d %s %s" %(dom, page, evtchn, 
path))
-        try:
-            db.introduceDomain(dom, page, evtchn, path)
-        except Exception, ex:
-            import traceback
-            traceback.print_exc()
-            log.info("DBMap>introduceDomain> %s" %ex)
-            pass # todo: don't ignore
-        
-    def releaseDomain(self, dom):
-        db = self.__db__
-        log.info("DBMap>releaseDomain> %d" %dom)
-        try:
-            db.releaseDomain(dom)
-        except Exception, ex:
-            import traceback
-            traceback.print_exc()
-            log.info("DBMap>releaseDomain> %s" %ex)
-            pass # todo: don't ignore
-
     def watch(self, fn, path=""):
         return self.__db__.watch(fn, path=path)
 

_______________________________________________
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®.