summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-07-13 15:37:02 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-07-13 15:42:41 -0400
commit3741c4ba6f0c60d007fb461413a0638c42f61566 (patch)
tree09e4a9986e5cb65331407c974475dad6c210e9f6
parent8f08b1cc31d28261eef6b9c0b3567aeecd44bd8d (diff)
vtysh: Make nexthop-group submode line unique
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>
-rw-r--r--vtysh/vtysh_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 4ae1e499ff..1e45e6f972 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -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);