summaryrefslogtreecommitdiffstats
path: root/vtysh/vtysh_config.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-08-29 01:52:29 +0200
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>2017-08-29 02:16:52 +0200
commit6b3ee3a0b013e580abbce83ae46e4ed2bcf5f7a7 (patch)
tree0251b953373938ef887ff44d058a432f676b4e39 /vtysh/vtysh_config.c
parentHandle hostname/domainname properly for FreeBSD (diff)
downloadfrr-6b3ee3a0b013e580abbce83ae46e4ed2bcf5f7a7.tar.xz
frr-6b3ee3a0b013e580abbce83ae46e4ed2bcf5f7a7.zip
lib: new APIs for get/set system hostname/domainname
1. Change hostname_get to cmd_hostname_get 2. Change domainname_get to cmd_domainname_get 3. New API to set domainname 3. Provide a CLI command to set domainname Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'vtysh/vtysh_config.c')
-rw-r--r--vtysh/vtysh_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index c331e4588..1ce065fcc 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -421,8 +421,8 @@ void vtysh_config_write()
{
char line[81];
- if (hostname_get()) {
- sprintf(line, "hostname %s", hostname_get());
+ if (cmd_hostname_get()) {
+ sprintf(line, "hostname %s", cmd_hostname_get());
vtysh_config_parse_line(NULL, line);
}
if (vtysh_write_integrated == WRITE_INTEGRATED_NO)