From 6735622c24a3510032e40aaf4b9f419e9efbea3d Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 6 Sep 2021 19:52:32 -0300 Subject: ospf6d: implement Type-7 default routes for NSSA areas Add the "default-information-originate" option to the "area X nssa" command. That option allows the origination of Type-7 default routes on NSSA ABRs and ASBRs. Signed-off-by: Renato Westphal --- ospf6d/ospf6_spf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ospf6d/ospf6_spf.c') diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c index e4de6ccf91..37e133f2f9 100644 --- a/ospf6d/ospf6_spf.c +++ b/ospf6d/ospf6_spf.c @@ -646,8 +646,10 @@ static int ospf6_spf_calculation_thread(struct thread *t) /* External LSA calculation */ ospf6_ase_calculate_timer_add(ospf6); - if (ospf6_check_and_set_router_abr(ospf6)) + if (ospf6_check_and_set_router_abr(ospf6)) { ospf6_abr_defaults_to_stub(ospf6); + ospf6_abr_nssa_type_7_defaults(ospf6); + } monotime(&end); timersub(&end, &start, &runtime); -- cgit v1.2.3