]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: Router-ID filter is not filtering the show command "do show ipv6 ospf6 neighb...
authorYash Ranjan <ranjany@vmware.com>
Fri, 4 Dec 2020 09:40:33 +0000 (01:40 -0800)
committerYash Ranjan <ranjany@vmware.com>
Fri, 4 Dec 2020 12:15:30 +0000 (04:15 -0800)
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>
ospf6d/ospf6_neighbor.c

index c1905e8c1eb1b6ac6f49aac08f62daef558260e0..7a1b96c2b3b8f7cb5f959be241b4d1938d7cc6b6 100644 (file)
@@ -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",