diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-05-17 14:44:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-17 14:44:11 -0400 |
| commit | 84cdd5b375bb53fdcb25e3e9989af526cfa9983f (patch) | |
| tree | bd6706cdc0e20bd46d1d5458bf805de52ba1cbae | |
| parent | 7cfaf4b3394de78bc1a48b22d84f118a80f88b98 (diff) | |
| parent | 2c7ef20dc9df9d9c9731e3e822ec8d1f42b8d609 (diff) | |
Merge pull request #4357 from sworleys/Table-Null-Cov
zebra: Continue rm update if table not found
| -rw-r--r-- | zebra/redistribute.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c index f3155deb14..b13f1170cd 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -770,6 +770,13 @@ void zebra_import_table_rm_update(const char *rmap) continue; table = zebra_vrf_table_with_table_id(afi, SAFI_UNICAST, 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 each entry in the non-default * routing table, |
