diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-21 11:10:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-21 11:10:29 +0300 |
| commit | 53e00a69d29b255e19fcf4ce68628fc57937f192 (patch) | |
| tree | bbcc8c12183ef114a0b769159f9747342c81bbda | |
| parent | a418752d47fc971acb065021a4f35b2da8360422 (diff) | |
| parent | b56114aa9e6cafd4ee4c27bc47e48a1d3b775cb3 (diff) | |
Merge pull request #8709 from dslicenc/ospf-intf-area
ospfd: "ip ospf area" command can select wrong process
| -rw-r--r-- | ospfd/ospf_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 04b6bdd961..fb2d790532 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -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); |
