From: Stephen Worley Date: Thu, 16 May 2019 21:34:05 +0000 (-0700) Subject: zebra: Continue rm update if table not found X-Git-Tag: base_7.2~329^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2c7ef20dc9df9d9c9731e3e822ec8d1f42b8d609;p=matthieu%2Ffrr.git 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 --- 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,