mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 21:33:55 +00:00
Merge pull request #8392 from idryzhov/ospf-ignore-dup
ospfd: ignore duplicated "ip ospf area" commands
This commit is contained in:
commit
6f8a5e6157
@ -8968,9 +8968,12 @@ DEFUN (ip_ospf_area,
|
|||||||
// update/create address-level params
|
// update/create address-level params
|
||||||
params = ospf_get_if_params((ifp), (addr));
|
params = ospf_get_if_params((ifp), (addr));
|
||||||
if (OSPF_IF_PARAM_CONFIGURED(params, if_area)) {
|
if (OSPF_IF_PARAM_CONFIGURED(params, if_area)) {
|
||||||
|
if (!IPV4_ADDR_SAME(¶ms->if_area, &area_id)) {
|
||||||
vty_out(vty,
|
vty_out(vty,
|
||||||
"Must remove previous area/address config before changing ospf area\n");
|
"Must remove previous area/address config before changing ospf area\n");
|
||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
|
} else
|
||||||
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
ospf_if_update_params((ifp), (addr));
|
ospf_if_update_params((ifp), (addr));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user