Skip to content

Commit

Permalink
ignore net interfaces without PNPDEVICEID
Browse files Browse the repository at this point in the history
Reported-by: Tomás Abad <tabad@sescam.jccm.es>
  • Loading branch information
Gonéri Le Bouder committed Mar 12, 2012
1 parent da47b46 commit 0f7768e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -131,7 +131,10 @@ sub _getInterfaces {
# exclude pure virtual interfaces
return
grep {
ref($_) eq 'HASH' &&
ref($_) eq 'HASH'
&&
(defined($_->{PNPDEVICEID}) && $_->{PNPDEVICEID})
&&
(
(defined($_->{IPADDRESS}) && $_->{IPADDRESS})
||
Expand Down

0 comments on commit 0f7768e

Please sign in to comment.