summaryrefslogtreecommitdiff
path: root/ospfd
diff options
context:
space:
mode:
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>2006-06-30 16:53:47 +0000
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>2006-06-30 16:53:47 +0000
commit1c066bfe62951fa1e2f90f02b528342d60fcd6f9 (patch)
treeb842a3dcdaab713be90bdf444d120e95610f72ac /ospfd
parent74176d220ba6fb019a18ebea3e3245a46f33dce1 (diff)
[ospfd] Fix "show ip ospf neighbor A.B.C.D" to show all matches
2006-06-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * 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.
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ChangeLog6
-rw-r--r--ospfd/ospf_vty.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index 3975b07a..e4dfbee5 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * 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.
+
2006-06-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_nsm.c: (nsm_twoway_received) When deciding whether to
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;
}