summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@cumulusnetworks.com>2018-03-06 13:48:33 -0800
committerGitHub <noreply@github.com>2018-03-06 13:48:33 -0800
commit7b1bf203ca189938b41811945fe6a71911574de3 (patch)
tree7df11e1b20b328d310c72f928970b2ada5822e3b /lib/command.c
parent58f9e4d3f227c7cdef45204e6f3a1f7673a5201b (diff)
parentdefd0965f4a85a392e29032f712617e3c617596d (diff)
Merge branch 'master' into type5-default-originate
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index 10996d5dd4..3fa086bf62 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -500,6 +500,9 @@ static int config_write_host(struct vty *vty)
if (cmd_hostname_get())
vty_out(vty, "hostname %s\n", cmd_hostname_get());
+ if (cmd_domainname_get())
+ vty_out(vty, "domainname %s\n", cmd_domainname_get());
+
if (host.encrypt) {
if (host.password_encrypt)
vty_out(vty, "password 8 %s\n", host.password_encrypt);