Print an error when user tries to change a previously configured area.

Ticket: CM-5673
Reviewed By: Donald
Testing Done:  Cherry picking from 2.5.4, no testing in 3.0 yet.
This commit is contained in:
Vipin Kumar 2015-10-20 15:06:25 -07:00
parent f35a535097
commit 73b9f7037b

View 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;
}