From a601d662743f379d4626dc252115ece7bd7ba83b Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Sun, 9 May 2021 17:07:39 +0300 Subject: [PATCH] isisd: fix "default-information originate always" We don't need to register for default routes from zebra, when the origination type is set to "always". Signed-off-by: Igor Ryzhov --- isisd/isis_redist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c index c33d56e625..843df3a849 100644 --- a/isisd/isis_redist.c +++ b/isisd/isis_redist.c @@ -359,8 +359,9 @@ static void isis_redist_update_zebra_subscriptions(struct isis *isis) for (type = 0; type < ZEBRA_ROUTE_MAX + 1; type++) for (level = 0; level < ISIS_LEVELS; level++) if (area->redist_settings[protocol] - [type] - [level].redist) + [type][level] + .redist + == 1) do_subscribe[protocol][type] = 1; -- 2.39.5