]> git.puffer.fish Git - matthieu/frr.git/commitdiff
vtysh: remove sorting of vrf node commands
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 15 Sep 2021 15:22:47 +0000 (18:22 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 20 Sep 2021 18:18:17 +0000 (21:18 +0300)
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 <iryzhov@nfware.com>
vtysh/vtysh_config.c

index 2e1d7c5bad828fdf34dcb6b3d55f697d03e1a46a..7d663196690f417cc3d70dcf1341dda4a73df5e9 100644 (file)
@@ -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