From 1c066bfe62951fa1e2f90f02b528342d60fcd6f9 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Fri, 30 Jun 2006 16:53:47 +0000 Subject: [ospfd] Fix "show ip ospf neighbor A.B.C.D" to show all matches 2006-06-30 Andrew J. Schorr * ospf_vty.c: (show_ip_ospf_neighbor_id) Should show all instances of that neighbor (since it may appear on multiple interfaces) instead of bailing out after showing the first match. --- ospfd/ospf_vty.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ospfd/ospf_vty.c') diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 0298af22..ec002017 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -3222,12 +3222,8 @@ DEFUN (show_ip_ospf_neighbor_id, for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi)) if ((nbr = ospf_nbr_lookup_by_routerid (oi->nbrs, &router_id))) - { - show_ip_ospf_neighbor_detail_sub (vty, oi, nbr); - return CMD_SUCCESS; - } + show_ip_ospf_neighbor_detail_sub (vty, oi, nbr); - /* Nothing to show. */ return CMD_SUCCESS; } -- cgit v1.2.1