summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-03-06 17:27:10 +0100
committerGitHub <noreply@github.com>2018-03-06 17:27:10 +0100
commit6dfe83b8f763795017e6b9bcbe0757143b56e539 (patch)
tree357d5777dfebe6797549f0a0bd85cfb6d9c1e2f8 /vtysh/vtysh_config.c
parentMerge pull request #1818 from pguibert6WIND/issue_vrfnetns_capabilities (diff)
parentMerge branch 'master' into evpn-bug-fixes (diff)
downloadfrr-6dfe83b8f763795017e6b9bcbe0757143b56e539.tar.xz
frr-6dfe83b8f763795017e6b9bcbe0757143b56e539.zip
Merge pull request #1728 from mkanjari/evpn-bug-fixes
Evpn bug fixes
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r--vtysh/vtysh_config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index aa1dd407e..84db436c8 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -448,6 +448,11 @@ void vtysh_config_write()
sprintf(line, "hostname %s", cmd_hostname_get());
vtysh_config_parse_line(NULL, line);
}
+
+ if (cmd_domainname_get()) {
+ sprintf(line, "domainname %s", cmd_domainname_get());
+ vtysh_config_parse_line(NULL, line);
+ }
if (vtysh_write_integrated == WRITE_INTEGRATED_NO)
vtysh_config_parse_line(NULL,
"no service integrated-vtysh-config");