From 3b103fec6be8073eb5f4da86a8a45b8f6d7e708f Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Wed, 7 Feb 2018 14:46:04 -0800 Subject: vtysh/lib: write domainname to config file Ticket: CM-19626 Review: CCR-7170 Testing: Manual Signed-off-by: Mitesh Kanjariya --- lib/command.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index d17f2c3d48..6870f4804b 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); -- cgit v1.2.3