mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 14:28:07 +00:00
Merge pull request #7294 from idryzhov/fix-no-ip-ospf-area
ospfd: fix "no ip ospf area"
This commit is contained in:
commit
aadbfa4918
@ -8232,7 +8232,7 @@ DEFUN (no_ip_ospf_area,
|
|||||||
else
|
else
|
||||||
ospf = ospf_lookup_instance(instance);
|
ospf = ospf_lookup_instance(instance);
|
||||||
|
|
||||||
if (ospf == NULL)
|
if (instance && ospf == NULL)
|
||||||
return CMD_NOT_MY_INSTANCE;
|
return CMD_NOT_MY_INSTANCE;
|
||||||
|
|
||||||
argv_find(argv, argc, "area", &idx);
|
argv_find(argv, argc, "area", &idx);
|
||||||
@ -8262,8 +8262,11 @@ DEFUN (no_ip_ospf_area,
|
|||||||
ospf_if_update_params((ifp), (addr));
|
ospf_if_update_params((ifp), (addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
ospf_interface_area_unset(ospf, ifp);
|
if (ospf) {
|
||||||
ospf->if_ospf_cli_count--;
|
ospf_interface_area_unset(ospf, ifp);
|
||||||
|
ospf->if_ospf_cli_count--;
|
||||||
|
}
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user