From: Quentin Young Date: Tue, 5 Mar 2019 18:57:14 +0000 (+0000) Subject: vtysh: don't sort vrrp interface config X-Git-Tag: base_7.2~330^2~41 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=18ca2e1ff40c86920804c7967a0a0828c2911996;p=mirror%2Ffrr.git vtysh: don't sort vrrp interface config It is order dependent Signed-off-by: Quentin Young --- diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c index 7ca3ed9c5e..cf94ab643a 100644 --- a/vtysh/vtysh_config.c +++ b/vtysh/vtysh_config.c @@ -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