Merge pull request #4357 from sworleys/Table-Null-Cov

zebra: Continue rm update if table not found
This commit is contained in:
Mark Stapp 2019-05-17 14:44:11 -04:00 committed by GitHub
commit 84cdd5b375
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -770,6 +770,13 @@ void zebra_import_table_rm_update(const char *rmap)
continue; continue;
table = zebra_vrf_table_with_table_id(afi, SAFI_UNICAST, table = zebra_vrf_table_with_table_id(afi, SAFI_UNICAST,
i, VRF_DEFAULT); i, VRF_DEFAULT);
if (!table) {
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug("%s: Table id=%d not found",
__func__, i);
continue;
}
for (rn = route_top(table); rn; rn = route_next(rn)) { for (rn = route_top(table); rn; rn = route_next(rn)) {
/* For each entry in the non-default /* For each entry in the non-default
* routing table, * routing table,