skip devices in makerancidconf that have no real vendor

This commit is contained in:
Oliver Gorwits
2018-02-01 18:06:33 +00:00
parent e5e2fc4ac4
commit 8b372bc9fb
2 changed files with 9 additions and 0 deletions

View File

@@ -47,6 +47,11 @@ register_worker({ phase => 'main' }, sub {
(pairkeys pairfirst { check_acl_no($d, $b) } %{ $config->{vendormap} })
|| $d->vendor;
if ($vendor =~ m/(?:enterprises\.|netdisco)/) {
debug " skipping $d with unresolved vendor: $vendor";
next;
}
push @{$routerdb->{$group}},
(sprintf "%s${delimiter}%s${delimiter}%s", $name, $vendor,
($d->get_column('old') ? 'down' : 'up'));