skip devices in makerancidconf that have no real vendor
This commit is contained in:
4
Changes
4
Changes
@@ -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]
|
||||||
|
|||||||
@@ -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'));
|
||||||
|
|||||||
Reference in New Issue
Block a user