zebra: Make show nexthop-group command more readable

Put some whitespace into the command output so that
we can read it a little bit easier.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2019-03-11 17:42:24 -04:00
parent 8c0a24c14e
commit a53a11f218

View File

@ -1115,14 +1115,13 @@ static void show_nexthop_group_cmd_helper(struct vty *vty,
if (nhe->vrf_id != zvrf->vrf->vrf_id) if (nhe->vrf_id != zvrf->vrf->vrf_id)
continue; continue;
vty_out(vty, vty_out(vty, "Group: %u ID: %u\n", nhe->dplane_ref, nhe->id);
"Group: %u ID: %u RefCnt: %d Valid: %d Installed: %d\n", vty_out(vty, "\tRefCnt: %d\n", nhe->refcnt);
nhe->dplane_ref, nhe->id, nhe->refcnt, vty_out(vty, "\tValid: %d, Installed %d\n",
nhe->flags & NEXTHOP_GROUP_VALID, nhe->flags & NEXTHOP_GROUP_VALID,
nhe->flags & NEXTHOP_GROUP_INSTALLED); nhe->flags & NEXTHOP_GROUP_INSTALLED);
for (ALL_NEXTHOPS(nhe->nhg, nhop)) { for (ALL_NEXTHOPS(nhe->nhg, nhop)) {
vty_out(vty, " "); vty_out(vty, "\t");
nexthop_group_write_nexthop(vty, nhop); nexthop_group_write_nexthop(vty, nhop);
} }
} }