mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +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);
|
host.config = XSTRDUP (MTYPE_HOST, filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *
|
||||||
|
host_config_get (void)
|
||||||
|
{
|
||||||
|
return host.config;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
install_default (enum node_type node)
|
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_quit_cmd;
|
||||||
extern struct cmd_element config_help_cmd;
|
extern struct cmd_element config_help_cmd;
|
||||||
extern struct cmd_element config_list_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 host_config_set (const char *);
|
||||||
|
|
||||||
extern void print_version (const char *);
|
extern void print_version (const char *);
|
||||||
|
Loading…
Reference in New Issue
Block a user