mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 16:57:44 +00:00
lib: add api method to read current config path
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
parent
0df81134b1
commit
57387fb2cd
@ -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)
|
||||
{
|
||||
|
@ -602,7 +602,7 @@ extern struct cmd_element config_exit_cmd;
|
||||
extern struct cmd_element config_quit_cmd;
|
||||
extern struct cmd_element config_help_cmd;
|
||||
extern struct cmd_element config_list_cmd;
|
||||
extern char *host_config_file (void);
|
||||
extern const char *host_config_get (void);
|
||||
extern void host_config_set (const char *);
|
||||
|
||||
extern void print_version (const char *);
|
||||
|
Loading…
Reference in New Issue
Block a user