From 66673d2985ad0d05516a7b22f6597c57a28ea703 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 21 Mar 2018 12:07:20 -0400 Subject: [PATCH] lib: dont break display of nexthop-groups themselves Signed-off-by: Quentin Young --- lib/nexthop_group.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index d7dbfd8a495a..1ec49c2a0276 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"); }