From 786b76d03aaf56cb1593866ff015c847b54194d7 Mon Sep 17 00:00:00 2001 From: Yash Ranjan Date: Fri, 4 Dec 2020 01:40:33 -0800 Subject: [PATCH] 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 --- ospf6d/ospf6_neighbor.c | 7 ++++--- 1 file 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", -- 2.39.5