]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: free "default-information originate" config when removing router
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 7 May 2021 14:53:13 +0000 (17:53 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 17 May 2021 22:27:16 +0000 (01:27 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospf6d/ospf6_asbr.c

index ccab39481ef16ca28aa5301e4f5433874cb3a921..96dcdba68f8e876891146a7a2cbeba9e6400a810 100644 (file)
@@ -2305,6 +2305,12 @@ void ospf6_asbr_redistribute_reset(struct ospf6 *ospf6)
                ospf6_asbr_redistribute_unset(ospf6, red, type);
                ospf6_redist_del(ospf6, red, type);
        }
+       red = ospf6_redist_lookup(ospf6, DEFAULT_ROUTE, 0);
+       if (red) {
+               ospf6_asbr_routemap_unset(red);
+               ospf6_redist_del(ospf6, red, type);
+               ospf6_redistribute_default_set(ospf6, DEFAULT_ORIGINATE_NONE);
+       }
 }
 
 void ospf6_asbr_terminate(void)