From 18ca2e1ff40c86920804c7967a0a0828c2911996 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Tue, 5 Mar 2019 18:57:14 +0000 Subject: [PATCH] vtysh: don't sort vrrp interface config It is order dependent Signed-off-by: Quentin Young --- vtysh/vtysh_config.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5