]> git.puffer.fish Git - mirror/frr.git/commitdiff
Print an error when user tries to change a previously configured area.
authorVipin Kumar <vipin@cumulusnetworks.com>
Tue, 20 Oct 2015 22:06:25 +0000 (15:06 -0700)
committerVipin Kumar <vipin@cumulusnetworks.com>
Tue, 20 Oct 2015 22:06:25 +0000 (15:06 -0700)
Ticket: CM-5673
Reviewed By: Donald
Testing Done:  Cherry picking from 2.5.4, no testing in 3.0 yet.

ospfd/ospf_vty.c

index f2b34bab1738ecc940af6c8d948fd44f57dcc486..12187f31365f2dc84fcd910b4f1a0ccb0e4672dc 100644 (file)
@@ -7688,6 +7688,9 @@ DEFUN (ip_ospf_area,
   params = IF_DEF_PARAMS (ifp);
   if (OSPF_IF_PARAM_CONFIGURED(params, if_area))
     {
+      vty_out (vty,
+               "Must remove previous area config before changing ospf area %s",
+               VTY_NEWLINE);
       return CMD_WARNING;
     }