diff options
| author | Kaushik <kaushiknath.null@gmail.com> | 2021-03-25 04:29:51 -0700 | 
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2021-06-04 07:23:10 -0300 | 
| commit | ad500b22b5fc3bc34009b7212c7c3b2f6c4375aa (patch) | |
| tree | f24f206101ffcbfc968ad97fd54a71b94c134ccb /ospf6d/ospf6d.c | |
| parent | 10ddcc321a59de099ee357fd5cca229a8c3110bf (diff) | |
ospf6d: Support for nssa in ospfv3
The following is implemented.
1. Configuring area as NSSA.
2. Generating Type 7 LSA.
3. Conversion of Type 7 to Type 5 ( Default Behavior).
4. NSSA ABR selection.
Reviewed-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Co-authored-by: Kaushik <kaushiknath.null@gmail.com>
Co-authored-by: Soman K.S <somanks@gmail.com>
Signed-off-by: Kaushik <kaushiknath.null@gmail.com>
Diffstat (limited to 'ospf6d/ospf6d.c')
| -rw-r--r-- | ospf6d/ospf6d.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index da8c695f65..65f0aa664e 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -46,6 +46,7 @@  #include "ospf6d.h"  #include "ospf6_bfd.h"  #include "lib/json.h" +#include "ospf6_nssa.h"  DEFINE_MGROUP(OSPF6D, "ospf6d"); @@ -94,6 +95,7 @@ static int config_write_ospf6_debug(struct vty *vty)  	config_write_ospf6_debug_asbr(vty);  	config_write_ospf6_debug_abr(vty);  	config_write_ospf6_debug_flood(vty); +	config_write_ospf6_debug_nssa(vty);  	return 0;  } @@ -153,6 +155,8 @@ static uint16_t parse_type_spec(int idx_lsa, int argc, struct cmd_token **argv)  			type = htons(OSPF6_LSTYPE_INTER_PREFIX);  		else if (strmatch(argv[idx_lsa]->text, "link"))  			type = htons(OSPF6_LSTYPE_LINK); +		else if (strmatch(argv[idx_lsa]->text, "type-7")) +			type = htons(OSPF6_LSTYPE_TYPE_7);  	}  	return type; @@ -1419,6 +1423,7 @@ void ospf6_init(struct thread_master *master)  	install_element_ospf6_debug_asbr();  	install_element_ospf6_debug_abr();  	install_element_ospf6_debug_flood(); +	install_element_ospf6_debug_nssa();  	install_element_ospf6_clear_interface();  | 
