summaryrefslogtreecommitdiff
path: root/ospf6d
diff options
context:
space:
mode:
authorYash Ranjan <ranjany@vmware.com>2020-12-04 01:40:33 -0800
committerYash Ranjan <ranjany@vmware.com>2020-12-04 04:15:30 -0800
commit786b76d03aaf56cb1593866ff015c847b54194d7 (patch)
tree914a5c3482f64fdee62e5c6063e4c7e9b1dee4bd /ospf6d
parent057edd2e84a6536615b4c80c67d83024ef8f3234 (diff)
ospf6d: Router-ID filter is not filtering the show command "do show ipv6 ospf6 neighbour A.B.C.D"
Compare the neighbour id string from the arguments to the router_id of the neighbor. If equal then call the show function. Signed-off-by: Yash Ranjan <ranjany@vmware.com>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_neighbor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ospf6d/ospf6_neighbor.c b/ospf6d/ospf6_neighbor.c
index c1905e8c1e..7a1b96c2b3 100644
--- a/ospf6d/ospf6_neighbor.c
+++ b/ospf6d/ospf6_neighbor.c
@@ -1075,9 +1075,10 @@ DEFUN (show_ipv6_ospf6_neighbor_one,
for (ALL_LIST_ELEMENTS_RO(ospf6->area_list, i, oa))
for (ALL_LIST_ELEMENTS_RO(oa->if_list, j, oi))
- for (ALL_LIST_ELEMENTS_RO(oi->neighbor_list, k, on))
- (*showfunc)(vty, on, json, uj);
-
+ for (ALL_LIST_ELEMENTS_RO(oi->neighbor_list, k, on)) {
+ if (router_id == on->router_id)
+ (*showfunc)(vty, on, json, uj);
+ }
if (uj) {
vty_out(vty, "%s\n",