From d98d4a1e7d92d97920d28a2bfb3b8b831bcadee6 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 15 Sep 2021 18:22:47 +0300 Subject: [PATCH] vtysh: remove sorting of vrf node commands A simple strcmp-based sorting done by `config_add_line_uniq` breaks the correct advanced sorting of static routes done by staticd. We don't actually need to check vrf node commands for uniqueness as all commands are daemon specific, so let's use simple `config_add_line` that doesn't sort commands. Signed-off-by: Igor Ryzhov --- vtysh/vtysh_config.c | 1 - 1 file changed, 1 deletion(-) diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index 2e1d7c5bad..7d66319669 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -286,7 +286,6 @@ void vtysh_config_parse_line(void *arg, const char *line) } else if (config->index == RMAP_NODE || config->index == INTERFACE_NODE || config->index == VTY_NODE - || config->index == VRF_NODE || config->index == NH_GROUP_NODE) config_add_line_uniq(config->line, line); else -- 2.39.5