Skip to content

Commit

Permalink
lib: dont break display of nexthop-groups themselves
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
  • Loading branch information
qlyoung authored and donaldsharp committed Mar 21, 2018
1 parent fe04bc1 commit 66673d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nexthop_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 66673d2

Please sign in to comment.