diff options
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-rw-r--r-- | lib/network/connection/ethernet.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index 1e147ca..95fd17e 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -470,8 +470,8 @@ sub get_eth_card_mac_address { #- write interfaces MAC address in iftab sub update_iftab() { - #- skip aliases interfaces - foreach my $intf (grep { !network::tools::is_virtual_interface($_) } detect_devices::get_lan_interfaces()) { + #- skip aliases and vlan interfaces + foreach my $intf (grep { network::tools::is_real_interface($_) } detect_devices::get_lan_interfaces()) { my ($link_type, $mac_address) = get_eth_card_mac_address($intf) or next; #- do not write zeroed MAC addresses in iftab, it confuses ifrename $mac_address =~ /^[0:]+$/ and next; |