]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: don't sort vrrp interface config
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 5 Mar 2019 18:57:14 +0000 (18:57 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
It is order dependent

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vtysh/vtysh_config.c

index 7ca3ed9c5ea5762f1689549952b675a88d58e5aa..cf94ab643a308f6341939ee046cfa0ce08848355 100644 (file)
@@ -257,6 +257,10 @@ void vtysh_config_parse_line(void *arg, const char *line)
                                              strlen(" exit-vrf"))
                                              == 0) {
                                config_add_line_uniq_end(config->line, line);
+                       } else if (!strncmp(line, " vrrp", strlen(" vrrp"))
+                                  || !strncmp(line, " no vrrp",
+                                              strlen(" no vrrp"))) {
+                               config_add_line(config->line, line);
                        } else if (config->index == RMAP_NODE
                                   || config->index == INTERFACE_NODE
                                   || config->index == LOGICALROUTER_NODE