diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-05-16 23:34:05 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-05-17 02:24:42 +0200 |
commit | 2c7ef20dc9df9d9c9731e3e822ec8d1f42b8d609 (patch) | |
tree | 803f1887ca44b52b0095ea0565fc85e1b8f2d18f /zebra/redistribute.c | |
parent | Merge pull request #4355 from donaldsharp/revert_rtadv_changes (diff) | |
download | frr-2c7ef20dc9df9d9c9731e3e822ec8d1f42b8d609.tar.xz frr-2c7ef20dc9df9d9c9731e3e822ec8d1f42b8d609.zip |
zebra: Continue rm update if table not found
Add a check for after table lookup during route map update.
If the table ID does not exist, continue.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/redistribute.c')
-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 f3155deb1..b13f1170c 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, |