From 2c918ecaa6700dac5835dda16d6a2b1f97aa1e44 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 31 Aug 2013 13:14:32 -0400 Subject: [PATCH] uihelpers: Don't list 'lo' as a macvtap interface (bz #980606) --- virtManager/uihelpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtManager/uihelpers.py b/virtManager/uihelpers.py index e5ecaa997..8d1d193e0 100644 --- a/virtManager/uihelpers.py +++ b/virtManager/uihelpers.py @@ -612,6 +612,8 @@ def populate_network_list(net_list, conn, show_direct_interfaces=True): if nic.target_dev and nic.target_dev not in vnet_taps: vnet_taps.append(nic.target_dev) + skip_ifaces = ["lo"] + # Physical devices hasShared = False brIdxLabel = None @@ -623,7 +625,8 @@ def populate_network_list(net_list, conn, show_direct_interfaces=True): if ((bridge_name in vnet_bridges) or (br.get_name() in vnet_bridges) or (br.get_name() in vnet_taps) or - (br.get_name() in [v + "-nic" for v in vnet_bridges])): + (br.get_name() in [v + "-nic" for v in vnet_bridges]) or + (br.get_name() in skip_ifaces)): # Don't list this, as it is basically duplicating virtual net info continue