mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
[XEND] Prevent exception if PIF does not have a network.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
eddd713445
commit
4b166e2a17
1 file changed
+1
-1
@@ -103,7 +103,7 @@ class XendNode:
|
||||
saved_pifs = self.state_store.load_state('pif')
|
||||
if saved_pifs:
|
||||
for pif_uuid, pif in saved_pifs.items():
|
||||
if pif['network'] in self.networks:
|
||||
if pif.get('network') in self.networks:
|
||||
network = self.networks[pif['network']]
|
||||
try:
|
||||
self.PIF_create(pif['name'], pif['MTU'], pif['VLAN'],
|
||||
|
||||