ia64/xen-unstable

changeset 6813:c1450b657ede

g/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 17:32:59 2005 +0000 (2005-09-13)
parents 26cf3cfd3bed
children 22d08cc7f739
files tools/python/xen/xend/xenstore/xsnode.py tools/python/xen/xend/xenstore/xsobj.py
line diff
     1.1 --- a/tools/python/xen/xend/xenstore/xsnode.py	Tue Sep 13 17:31:13 2005 +0000
     1.2 +++ b/tools/python/xen/xend/xenstore/xsnode.py	Tue Sep 13 17:32:59 2005 +0000
     1.3 @@ -365,18 +365,6 @@ class XenStore:
     1.4          finally:
     1.5              self.watchThread = None
     1.6  
     1.7 -    def introduceDomain(self, dom, page, evtchn, path):
     1.8 -        try:
     1.9 -            self.getxs().introduce_domain(dom, page, evtchn.port1, path)
    1.10 -        except RuntimeError, ex:
    1.11 -            if ex.args[0] == errno.EISCONN:
    1.12 -                return None
    1.13 -            else:
    1.14 -                raise
    1.15 -
    1.16 -    def releaseDomain(self, dom):
    1.17 -        self.getxs().release_domain(dom)
    1.18 -
    1.19  def getXenStore():
    1.20      global xenstore
    1.21      try:
    1.22 @@ -461,12 +449,6 @@ class XenNode:
    1.23      def ls(self):
    1.24          return self.store.ls(self.path)
    1.25  
    1.26 -    def introduceDomain(self, dom, page, evtchn, path):
    1.27 -        self.store.introduceDomain(dom, page, evtchn, path)
    1.28 -        
    1.29 -    def releaseDomain(self, dom):
    1.30 -        self.store.releaseDomain(dom)
    1.31 -
    1.32      def watch(self, fn, path=""):
    1.33          """Watch a path for changes. The path is relative
    1.34          to the node and defaults to the node itself.
     2.1 --- a/tools/python/xen/xend/xenstore/xsobj.py	Tue Sep 13 17:31:13 2005 +0000
     2.2 +++ b/tools/python/xen/xend/xenstore/xsobj.py	Tue Sep 13 17:32:59 2005 +0000
     2.3 @@ -319,30 +319,6 @@ class DBMap(dict):
     2.4      def getPath(self):
     2.5          return self.__db__ and self.__db__.relPath()
     2.6  
     2.7 -    def introduceDomain(self, dom, page, evtchn, path=None):
     2.8 -        db = self.__db__
     2.9 -        if path is None:
    2.10 -            path = db.relPath()
    2.11 -        log.info("DBMap>introduceDomain> %d %d %s %s" %(dom, page, evtchn, path))
    2.12 -        try:
    2.13 -            db.introduceDomain(dom, page, evtchn, path)
    2.14 -        except Exception, ex:
    2.15 -            import traceback
    2.16 -            traceback.print_exc()
    2.17 -            log.info("DBMap>introduceDomain> %s" %ex)
    2.18 -            pass # todo: don't ignore
    2.19 -        
    2.20 -    def releaseDomain(self, dom):
    2.21 -        db = self.__db__
    2.22 -        log.info("DBMap>releaseDomain> %d" %dom)
    2.23 -        try:
    2.24 -            db.releaseDomain(dom)
    2.25 -        except Exception, ex:
    2.26 -            import traceback
    2.27 -            traceback.print_exc()
    2.28 -            log.info("DBMap>releaseDomain> %s" %ex)
    2.29 -            pass # todo: don't ignore
    2.30 -
    2.31      def watch(self, fn, path=""):
    2.32          return self.__db__.watch(fn, path=path)
    2.33