From: Stephen Worley Date: Mon, 11 Mar 2019 21:42:24 +0000 (-0400) Subject: zebra: Make show nexthop-group command more readable X-Git-Tag: base_7.3~219^2~143 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a53a11f2182b812250d9470aa4ced536d7fcfb99;p=mirror%2Ffrr.git 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 --- diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index b0b888381c..cf728a649d 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -1115,14 +1115,13 @@ static void show_nexthop_group_cmd_helper(struct vty *vty, if (nhe->vrf_id != zvrf->vrf->vrf_id) continue; - vty_out(vty, - "Group: %u ID: %u RefCnt: %d Valid: %d Installed: %d\n", - nhe->dplane_ref, nhe->id, nhe->refcnt, + vty_out(vty, "Group: %u ID: %u\n", nhe->dplane_ref, nhe->id); + vty_out(vty, "\tRefCnt: %d\n", nhe->refcnt); + vty_out(vty, "\tValid: %d, Installed %d\n", nhe->flags & NEXTHOP_GROUP_VALID, nhe->flags & NEXTHOP_GROUP_INSTALLED); - for (ALL_NEXTHOPS(nhe->nhg, nhop)) { - vty_out(vty, " "); + vty_out(vty, "\t"); nexthop_group_write_nexthop(vty, nhop); } }