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>
This commit is contained in:
Yash Ranjan 2020-12-04 01:40:33 -08:00
parent 057edd2e84
commit 786b76d03a

View 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",