summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-07-13 21:37:02 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-07-13 21:42:41 +0200
commit3741c4ba6f0c60d007fb461413a0638c42f61566 (patch)
tree09e4a9986e5cb65331407c974475dad6c210e9f6 /vtysh/vtysh_config.c
parentzebra: Modify way we query for inteface speed (diff)
downloadfrr-3741c4ba6f0c60d007fb461413a0638c42f61566.tar.xz
frr-3741c4ba6f0c60d007fb461413a0638c42f61566.zip
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>
Diffstat (limited to 'vtysh/vtysh_config.c')
-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 4ae1e499f..1e45e6f97 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);