summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2016-05-03 19:59:41 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-10-18 08:39:23 -0400
commit57387fb2cd00a01027b75e1d19f7ed905410deab (patch)
tree4134ba26e88683ef104e74ac8fd244fca51a737c /lib/command.c
parent0df81134b146dab1be4e2cb1033225fe06880a45 (diff)
lib: add api method to read current config path
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index fd4b2e2427..4f5b727ac5 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -4154,6 +4154,12 @@ host_config_set (const char *filename)
host.config = XSTRDUP (MTYPE_HOST, filename);
}
+const char *
+host_config_get (void)
+{
+ return host.config;
+}
+
void
install_default (enum node_type node)
{