ia64/xen-unstable

changeset 13263:3157b54eb465

[XEND] Prevent exception if PIF does not have a network.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Jan 04 16:34:19 2007 +0000 (2007-01-04)
parents b2ea5ae25a26
children 532b5b999b30
files tools/python/xen/xend/XendNode.py
line diff
     1.1 --- a/tools/python/xen/xend/XendNode.py	Thu Jan 04 16:31:29 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendNode.py	Thu Jan 04 16:34:19 2007 +0000
     1.3 @@ -103,7 +103,7 @@ class XendNode:
     1.4          saved_pifs = self.state_store.load_state('pif')
     1.5          if saved_pifs:
     1.6              for pif_uuid, pif in saved_pifs.items():
     1.7 -                if pif['network'] in self.networks:
     1.8 +                if pif.get('network') in self.networks:
     1.9                      network = self.networks[pif['network']]
    1.10                      try:
    1.11                          self.PIF_create(pif['name'], pif['MTU'], pif['VLAN'],