From: Igor Ryzhov Date: Sun, 9 May 2021 14:07:39 +0000 (+0300) Subject: isisd: fix "default-information originate always" X-Git-Tag: base_8.1~516^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a601d662743f379d4626dc252115ece7bd7ba83b;p=mirror%2Ffrr.git 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 --- 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;