summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Misc.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta/Misc.pm')
-rwxr-xr-xlib/Vyatta/Misc.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm
index fad3eb2..eccd715 100755
--- a/lib/Vyatta/Misc.pm
+++ b/lib/Vyatta/Misc.pm
@@ -93,7 +93,8 @@ sub generate_dhclient_intf_files {
sub getInterfaces {
opendir (my $sys_class, '/sys/class/net')
or die "can't open /sys/class/net: $!";
- my @interfaces = grep !/^\./, readdir $sys_class;
+ my @interfaces =
+ grep { ( !/^\./ ) && ( $_ ne 'bonding_masters' ) } readdir $sys_class;
closedir $sys_class;
return @interfaces;
}