mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 09:41:46 +00:00
Merge pull request #8709 from dslicenc/ospf-intf-area
ospfd: "ip ospf area" command can select wrong process
This commit is contained in:
commit
53e00a69d2
@ -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