ia64/xen-unstable

changeset 16322:ed20c4232e16

xend: Fix startup crash for some network configurations.
From: Guillaume Rousse <Guillaume.Rousse@inria.fr>
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Tue Nov 06 09:39:25 2007 +0000 (2007-11-06)
parents bfb1cb958632
children 468a30d74bd6
files tools/python/xen/xend/XendPIF.py
line diff
     1.1 --- a/tools/python/xen/xend/XendPIF.py	Mon Nov 05 16:38:47 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendPIF.py	Tue Nov 06 09:39:25 2007 +0000
     1.3 @@ -65,6 +65,7 @@ def linux_get_phy_ifaces():
     1.4              if name.startswith('peth'):
     1.5                  bridged_ifname = linux_phy_to_virt(name)
     1.6                  bridged_if = ifaces.get(bridged_ifname)
     1.7 +                bridged_mac = ''
     1.8                  if bridged_if:
     1.9                      bridged_mac = bridged_if[2]
    1.10                  phy_ifaces.append((name, int(mtu), bridged_mac))