summaryrefslogtreecommitdiff
path: root/lib/nexthop_group.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nexthop_group.c')
-rw-r--r--lib/nexthop_group.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c
index e486247244..1ec49c2a02 100644
--- a/lib/nexthop_group.c
+++ b/lib/nexthop_group.c
@@ -320,7 +320,7 @@ void nexthop_group_write_nexthop(struct vty *vty, struct nexthop *nh)
char buf[100];
struct vrf *vrf;
- vty_out(vty, " nexthop ");
+ vty_out(vty, "nexthop ");
switch (nh->type) {
case NEXTHOP_TYPE_IFINDEX:
@@ -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");
}