uihelpers: Don't list 'lo' as a macvtap interface (bz #980606)

This commit is contained in:
Cole Robinson 2013-08-31 13:14:32 -04:00
parent 1730a8e5ff
commit 2c918ecaa6

View File

@ -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