From: Keir Fraser Date: Tue, 6 Nov 2007 09:39:25 +0000 (+0000) Subject: xend: Fix startup crash for some network configurations. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14805 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fca749bf8d6e48167b8342f613c999e17c6b259e;p=xen.git xend: Fix startup crash for some network configurations. From: Guillaume Rousse Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/XendPIF.py b/tools/python/xen/xend/XendPIF.py index d210730765..ee39ec5413 100644 --- a/tools/python/xen/xend/XendPIF.py +++ b/tools/python/xen/xend/XendPIF.py @@ -65,6 +65,7 @@ def linux_get_phy_ifaces(): if name.startswith('peth'): bridged_ifname = linux_phy_to_virt(name) bridged_if = ifaces.get(bridged_ifname) + bridged_mac = '' if bridged_if: bridged_mac = bridged_if[2] phy_ifaces.append((name, int(mtu), bridged_mac))