]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: Display nssa in show running-config
authorChirag Shah <chirag@cumulusnetworks.com>
Sun, 26 Nov 2017 06:12:46 +0000 (22:12 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Sun, 26 Nov 2017 20:53:44 +0000 (12:53 -0800)
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>
ospfd/ospf_vty.c

index fef274bba35b42f2510fe9d422f123987d69d480..f8537a4abdb0c5c779f410d28b18f6aef646f7c2 100644 (file)
@@ -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,