Skip to content

Commit

Permalink
complete list of interfaces found with lscfg with iconfig -l output (…
Browse files Browse the repository at this point in the history
…bug #1326)
  • Loading branch information
Guillaume Rousse authored and Guillaume Rousse committed Jan 6, 2012
1 parent 19bfcf7 commit ee9cd66
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -41,11 +41,17 @@ sub _getInterfaces {

my $logger = $params{logger};

# get a first list of interfaces objects from lscfg
my @interfaces = _parseLscfg(
command => 'lscfg -v -l en*',
logger => $logger
);

# complete with empty interfaces objects from ifconfig
push @interfaces,
map { { DESCRIPTION => $_ } }
split(/ /, getFirstLine(command => 'ifconfig -l'));

foreach my $interface (@interfaces) {
my $handle = getFileHandle(
command => "lsattr -E -l $interface->{DESCRIPTION}",
Expand Down

0 comments on commit ee9cd66

Please sign in to comment.