mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 17:40:04 +00:00
[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.
This commit is contained in:
parent
74176d220b
commit
1c066bfe62
@ -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>
|
2006-06-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* ospf_nsm.c: (nsm_twoway_received) When deciding whether to
|
* ospf_nsm.c: (nsm_twoway_received) When deciding whether to
|
||||||
|
@ -3222,12 +3222,8 @@ DEFUN (show_ip_ospf_neighbor_id,
|
|||||||
|
|
||||||
for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
|
for (ALL_LIST_ELEMENTS_RO (ospf->oiflist, node, oi))
|
||||||
if ((nbr = ospf_nbr_lookup_by_routerid (oi->nbrs, &router_id)))
|
if ((nbr = ospf_nbr_lookup_by_routerid (oi->nbrs, &router_id)))
|
||||||
{
|
show_ip_ospf_neighbor_detail_sub (vty, oi, nbr);
|
||||||
show_ip_ospf_neighbor_detail_sub (vty, oi, nbr);
|
|
||||||
return CMD_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nothing to show. */
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user