aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-05-17 18:54:21 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-05-17 18:54:23 +0200
commitebb6c1fc4df89fac6bbd4c36c1a286b6b96fd49e (patch)
tree633582d693cca992f860826c8c20b824e958a992 /src/vty
parent24980baac9a1bd2eb53d77c0ef2e357db128eb18 (diff)
vty: Implement missing public API host_config_file()
The API was defined in the header file but not implemented. Change-Id: I69de9864fa7cd421557b9fc630beefea6d90b4cc
Diffstat (limited to 'src/vty')
-rw-r--r--src/vty/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index 4825109e..6d63d841 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -4219,6 +4219,11 @@ void host_config_set(const char *filename)
host.config = talloc_strdup(tall_vty_cmd_ctx, filename);
}
+const char *host_config_file(void)
+{
+ return host.config;
+}
+
/*! Deprecated, now happens implicitly when calling install_node().
* Users of the API may still attempt to call this function, hence
* leave it here as a no-op. */