mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:07:46 +00:00
ospfd: "ip ospf area" command can select wrong process
Found that in some circumstances, when the "ip ospf area" command was entered for the default vrf, the wrong ospf process would be used to check for the presence of a "network" statement, causing the "ip ospf area" command to be rejected. This was due to the command using the ospf instance lookup to find the right ospf process, which can be in error depending on when the processes were created. Signed-off-by: Don Slice <dslice@nvidia.com>
This commit is contained in:
parent
91895b15a9
commit
b56114aa9e
@ -8926,7 +8926,7 @@ DEFUN (ip_ospf_area,
|
||||
argv_find(argv, argc, "area", &idx);
|
||||
areaid = argv[idx + 1]->arg;
|
||||
|
||||
if (ifp->vrf_id && !instance)
|
||||
if (!instance)
|
||||
ospf = ospf_lookup_by_vrf_id(ifp->vrf_id);
|
||||
else
|
||||
ospf = ospf_lookup_instance(instance);
|
||||
@ -9050,7 +9050,7 @@ DEFUN (no_ip_ospf_area,
|
||||
if (argv_find(argv, argc, "(1-65535)", &idx))
|
||||
instance = strtol(argv[idx]->arg, NULL, 10);
|
||||
|
||||
if (ifp->vrf_id && !instance)
|
||||
if (!instance)
|
||||
ospf = ospf_lookup_by_vrf_id(ifp->vrf_id);
|
||||
else
|
||||
ospf = ospf_lookup_instance(instance);
|
||||
|
Loading…
Reference in New Issue
Block a user