ia64/xen-unstable

changeset 6953:8f9dfc5fb51c

Add and use XendDomainInfo.getBackendFlags to decouple image.py from the
internals of XendDomainInfo, in preparation for changing the latter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Sun Sep 18 22:42:02 2005 +0100 (2005-09-18)
parents 578a73fdeb2f
children 308260e5868c 951c8ee275b7
files tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Sun Sep 18 22:41:12 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Sun Sep 18 22:42:02 2005 +0100
     1.3 @@ -354,6 +354,10 @@ class XendDomainInfo:
     1.4          self.storeDom("store/ring-ref", ref)
     1.5  
     1.6  
     1.7 +    def getBackendFlags(self):
     1.8 +        return self.backend_flags
     1.9 +
    1.10 +
    1.11      def closeStoreChannel(self):
    1.12          """Close the store channel, if any.  Nothrow guarantee."""
    1.13          
     2.1 --- a/tools/python/xen/xend/image.py	Sun Sep 18 22:41:12 2005 +0100
     2.2 +++ b/tools/python/xen/xend/image.py	Sun Sep 18 22:42:02 2005 +0100
     2.3 @@ -188,7 +188,7 @@ class ImageHandler:
     2.4              return
     2.5  
     2.6          # Set params and call buildDomain().
     2.7 -        self.flags = self.vm.backend_flags
     2.8 +        self.flags = self.vm.getBackendFlags()
     2.9  
    2.10          if not os.path.isfile(self.kernel):
    2.11              raise VmError('Kernel image does not exist: %s' % self.kernel)