From 2c2312dc57cca2ced50e2d1c7526c99c5042edfe Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 5 Mar 2008 21:12:36 +0000 Subject: do not update iftab for vlan interfaces either --- lib/network/connection/ethernet.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/network/connection/ethernet.pm') 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; -- cgit v1.2.1