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

@@ -9,6 +9,10 @@
* Do not attempt Canonical IP change to non-discoverable IP * Do not attempt Canonical IP change to non-discoverable IP
[BUG FIXES]
* MakeRancidConf was incorrectly parsing its own config
2.038034 - 2018-01-31 2.038034 - 2018-01-31
[NEW FEATURES] [NEW FEATURES]

View File

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