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:
|
if nic.target_dev and nic.target_dev not in vnet_taps:
|
||||||
vnet_taps.append(nic.target_dev)
|
vnet_taps.append(nic.target_dev)
|
||||||
|
|
||||||
|
skip_ifaces = ["lo"]
|
||||||
|
|
||||||
# Physical devices
|
# Physical devices
|
||||||
hasShared = False
|
hasShared = False
|
||||||
brIdxLabel = None
|
brIdxLabel = None
|
||||||
@ -623,7 +625,8 @@ def populate_network_list(net_list, conn, show_direct_interfaces=True):
|
|||||||
if ((bridge_name in vnet_bridges) or
|
if ((bridge_name in vnet_bridges) or
|
||||||
(br.get_name() in vnet_bridges) or
|
(br.get_name() in vnet_bridges) or
|
||||||
(br.get_name() in vnet_taps) 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
|
# Don't list this, as it is basically duplicating virtual net info
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user