]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: fix multiple "domainname" commands in running config
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 1 Oct 2020 19:19:31 +0000 (22:19 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 7 Oct 2020 08:01:16 +0000 (11:01 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
vtysh/vtysh_config.c

index 85221b8b4522f62c98d33fa90e9242831efba69d..4b6c648d2fa46b9076e05856a3ac7b61dd24e823 100644 (file)
@@ -428,8 +428,8 @@ void vtysh_config_parse_line(void *arg, const char *line)
                        config = config_get(BFD_NODE, line);
                else {
                        if (strncmp(line, "log", strlen("log")) == 0
-                           || strncmp(line, "hostname", strlen("hostname"))
-                                      == 0
+                           || strncmp(line, "hostname", strlen("hostname")) == 0
+                           || strncmp(line, "domainname", strlen("domainname")) == 0
                            || strncmp(line, "frr", strlen("frr")) == 0
                            || strncmp(line, "agentx", strlen("agentx")) == 0
                            || strncmp(line, "no log", strlen("no log")) == 0