summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2016-10-06 13:50:36 -0400
committerDon Slice <dslice@cumulusnetworks.com>2016-10-06 13:50:36 -0400
commita452df33aa997a711f492e856b0330cb17a6998a (patch)
tree2469062a59fecb06374efce6b775c0fffcc04172
parent8d62b1417ee85862a85454f635168e5e3fcf682d (diff)
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
-rw-r--r--ospfd/ospf_vty.c2
1 files changed, 1 insertions, 1 deletions
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)