summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2017-11-25 22:12:46 -0800
committerChirag Shah <chirag@cumulusnetworks.com>2017-11-26 12:53:44 -0800
commit2643b2bc9d6e3082845884ded0b27552cc90116c (patch)
treed68a5bedd83bfffa8f31e2c0d0a71bf1a8711f09
parent6d1ac638f69edd04bbde181530d7457b101576b0 (diff)
ospfd: Display nssa in show running-config
Display area x.x.x.x nssa configuration in running-config. Using nssa translate candiate (default) case to display 'area x nssa'. Ticket:CM-18947 Reviewed By: Testing Done: Tried various combinations of nssa config, verified show running-config ospfd output router ospf area 2.2.2.2 nssa area 2.2.2.2 nssa no-summary router ospf area 2.2.2.2 nssa translate-always area 2.2.2.2 nssa no-summary Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
-rw-r--r--ospfd/ospf_vty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index fef274bba3..f8537a4abd 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -1541,7 +1541,7 @@ DEFUN (ospf_area_nssa,
"OSPF area ID as a decimal value\n"
"Configure OSPF area as nssa\n")
{
- return ospf_area_nssa_cmd_handler(vty, argc, argv, 1, 0);
+ return ospf_area_nssa_cmd_handler(vty, argc, argv, 0, 0);
}
DEFUN (ospf_area_nssa_no_summary,
@@ -9633,6 +9633,9 @@ static int config_write_ospf_area(struct vty *vty, struct ospf *ospf)
" area %s nssa translate-always\n",
buf);
break;
+ case OSPF_NSSA_ROLE_CANDIDATE:
+ vty_out(vty, " area %s nssa \n", buf);
+ break;
}
if (area->no_summary)
vty_out(vty,