From a452df33aa997a711f492e856b0330cb17a6998a Mon Sep 17 00:00:00 2001 From: Don Slice Date: Thu, 6 Oct 2016 13:50:36 -0400 Subject: [PATCH] ospfd: Display all ospf peers with show ip ospf neighbor detail all Problem reported that no peers are displayed when the command "show ip ospf neighbor detail all" is entered. Determined that the problem was actually that the function only displayed NBMA peers, and since we rarely (if ever) define NBMA peers, nothing is normally displayed. Changed the code to display both NBMA and non-NBMA peers, in both the up and down state. Manual testing attached to the jira ticket. Ticket: CM-5878 Signed-off-by: Don Slice Reviewed-by: Daniel Walton --- ospfd/ospf_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 980d59d341..dd3e2ecf11 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -4886,7 +4886,7 @@ show_ip_ospf_neighbor_detail_all_common (struct vty *vty, struct ospf *ospf, u_c for (rn = route_top (oi->nbrs); rn; rn = route_next (rn)) if ((nbr = rn->info)) if (nbr != oi->nbr_self) - if (oi->type == OSPF_IFTYPE_NBMA && nbr->state != NSM_Down) + if (nbr->state != NSM_Down) show_ip_ospf_neighbor_detail_sub (vty, oi, rn->info, use_json, json); if (oi->type == OSPF_IFTYPE_NBMA) -- 2.39.5