]> git.proxmox.com Git - mirror_frr.git/commitdiff
vtysh: Make nexthop-group submode line unique
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 13 Jul 2019 19:37:02 +0000 (15:37 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 13 Jul 2019 19:42:41 +0000 (15:42 -0400)
Now that multiple daemons understand nexthop-groups, we need
to ensure that vtysh doesn't double print out the individual
nexthops that are part of a nexthop-group.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
vtysh/vtysh_config.c

index 4ae1e499ff479c2f9907dacba2c7cc89e71ed477..1e45e6f972ef9d01e445e38a3b92025a63a3eb98 100644 (file)
@@ -265,7 +265,8 @@ void vtysh_config_parse_line(void *arg, const char *line)
                                   || config->index == INTERFACE_NODE
                                   || config->index == LOGICALROUTER_NODE
                                   || config->index == VTY_NODE
-                                  || config->index == VRF_NODE)
+                                  || config->index == VRF_NODE
+                                  || config->index == NH_GROUP_NODE)
                                config_add_line_uniq(config->line, line);
                        else
                                config_add_line(config->line, line);