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 <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2021-05-09 17:07:39 +03:00
parent 164ab8965e
commit a601d66274

View File

@ -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;