]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: Display all ospf peers with show ip ospf neighbor detail all
authorDon Slice <dslice@cumulusnetworks.com>
Thu, 6 Oct 2016 17:50:36 +0000 (13:50 -0400)
committerDon Slice <dslice@cumulusnetworks.com>
Thu, 6 Oct 2016 17:50:36 +0000 (13:50 -0400)
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

index 980d59d3416f8f53162ab860bff921c13dd0af03..dd3e2ecf11f6b7619bf2fbd60b72255dcb92d355 100644 (file)
@@ -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)