ia64/xen-unstable

changeset 2154:e5f6ec915c89

bitkeeper revision 1.1159.13.1 (4118a004V4kwgoMR9dGS7kTWxK4rmg)

Fix restart problem caused by old info in domain object.
author mjw@wray-m-3.hpl.hp.com
date Tue Aug 10 10:14:28 2004 +0000 (2004-08-10)
parents 92b8c987ae83
children 31a33f49cc2c
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Aug 09 23:22:10 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Aug 10 10:14:28 2004 +0000
     1.3 @@ -643,7 +643,11 @@ class XendDomainInfo:
     1.4          """
     1.5          self.release_vifs()
     1.6          self.release_vbds()
     1.7 +        
     1.8          self.devices = {}
     1.9 +        self.device_index = {}
    1.10 +        self.configs = []
    1.11 +        self.ipaddrs = []
    1.12  
    1.13      def release_vifs(self):
    1.14          """Release vm virtual network devices (vifs).
    1.15 @@ -851,7 +855,7 @@ class XendDomainInfo:
    1.16  
    1.17      def restart_check(self):
    1.18          """Check if domain restart is OK.
    1.19 -        To prevent restart loops, raise an error it is
    1.20 +        To prevent restart loops, raise an error if it is
    1.21          less than MINIMUM_RESTART_TIME seconds since the last restart.
    1.22          """
    1.23          tnow = time.time()