mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
uihelpers: Don't list 'lo' as a macvtap interface (bz #980606)
This commit is contained in:
parent
1730a8e5ff
commit
2c918ecaa6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user