summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-05-09 17:07:39 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-05-14 17:12:34 +0300
commita601d662743f379d4626dc252115ece7bd7ba83b (patch)
tree464350e02ead42b65ec0143c541fbc5750f7e401
parent164ab8965e442d42710da6a94c537452ce0d51a0 (diff)
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>
-rw-r--r--isisd/isis_redist.c5
1 files 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;