]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: fix "default-information originate always"
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 9 May 2021 14:07:39 +0000 (17:07 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 14 May 2021 14:12:34 +0000 (17:12 +0300)
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>
isisd/isis_redist.c

index c33d56e625e07b88c9408914a945820307d245a1..843df3a849b74f00d273c423d3978edea268103f 100644 (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;