From: Quentin Young Date: Wed, 21 Mar 2018 16:07:20 +0000 (-0400) Subject: lib: dont break display of nexthop-groups themselves X-Git-Tag: frr-5.0-dev~63^2~10 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=811f859f175f8912df47145699e5116a81320a1e;p=matthieu%2Ffrr.git lib: dont break display of nexthop-groups themselves Signed-off-by: Quentin Young --- diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index d7dbfd8a49..1ec49c2a02 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -361,8 +361,10 @@ static int nexthop_group_write(struct vty *vty) RB_FOREACH (nhgc, nhgc_entry_head, &nhgc_entries) { vty_out(vty, "nexthop-group %s\n", nhgc->name); - for (nh = nhgc->nhg.nexthop; nh; nh = nh->next) + for (nh = nhgc->nhg.nexthop; nh; nh = nh->next) { + vty_out(vty, " "); nexthop_group_write_nexthop(vty, nh); + } vty_out(vty, "!\n"); }