]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: dont break display of nexthop-groups themselves
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 21 Mar 2018 16:07:20 +0000 (12:07 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 6 Apr 2018 17:22:43 +0000 (13:22 -0400)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/nexthop_group.c

index d7dbfd8a495a567a5d17196dae3df5f9384b7215..1ec49c2a02766a384c4d60d47c0a6bfa20c9ae83 100644 (file)
@@ -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");
        }