diff options
author | root <root@frank.tg14.gathering.org> | 2014-04-14 00:56:26 +0200 |
---|---|---|
committer | root <root@frank.tg14.gathering.org> | 2014-04-14 00:56:26 +0200 |
commit | 1fedac6a0a5db17b9c6ff423ce473313cea44e12 (patch) | |
tree | 14d45633a034437f2931feb09c68368659254e02 | |
parent | 34ccf9782285f56b105f11760b74bb130da0653c (diff) |
Some hacks to filter away things from lldpdiscover.
-rwxr-xr-x | clients/lldpdiscover.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/lldpdiscover.pl b/clients/lldpdiscover.pl index 78c6675..1ae46a1 100755 --- a/clients/lldpdiscover.pl +++ b/clients/lldpdiscover.pl @@ -79,7 +79,10 @@ sub discover_lldp_neighbors { # Do not try to poll servers. my %caps = (); nms::convert_lldp_caps($value->{'lldpRemSysCapEnabled'}, \%caps); - next if (!$caps{'cap_enabled_bridge'} && !$caps{'cap_enabled_ap'} && !$caps{'cap_enabled_router'}); + next if (!$caps{'cap_enabled_bridge'} && !$caps{'cap_enabled_router'}); + next if ($caps{'cap_enabled_ap'}); + + next if $sysname =~ /nocnexus/; my $exists = $dbh->selectrow_hashref($qexist, undef, $chassis_id)->{'cnt'}; next if ($exists); |