From: Igor Ryzhov Date: Wed, 15 Sep 2021 15:22:47 +0000 (+0300) Subject: vtysh: remove sorting of vrf node commands X-Git-Tag: base_8.1~37^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d98d4a1e7d92d97920d28a2bfb3b8b831bcadee6;p=matthieu%2Ffrr.git 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 --- 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