mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 16:57:44 +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
|
||||
params = ospf_get_if_params((ifp), (addr));
|
||||
if (OSPF_IF_PARAM_CONFIGURED(params, if_area)) {
|
||||
vty_out(vty,
|
||||
"Must remove previous area/address config before changing ospf area\n");
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
if (!IPV4_ADDR_SAME(¶ms->if_area, &area_id)) {
|
||||
vty_out(vty,
|
||||
"Must remove previous area/address config before changing ospf area\n");
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
} else
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
ospf_if_update_params((ifp), (addr));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user