diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-31 01:55:26 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-05 01:52:46 +0200 |
commit | 43e587c1d10175519f16abe0779cc11f7f789c15 (patch) | |
tree | e1f3e442e7455d404327a64dfc61ca562b2b9999 /vtysh | |
parent | *: Convert to using frr_vtydir instead of DAEMON_VTY_DIR (diff) | |
download | frr-43e587c1d10175519f16abe0779cc11f7f789c15.tar.xz frr-43e587c1d10175519f16abe0779cc11f7f789c15.zip |
*: Convert over to all -N namespace to change DAEMON_VTY_DIR
When the user specifies -N namespace allow it to influence the
frr_vtydir(DAEMON_VTY_DIR) to have namespace in it's path
like so: $frrstate_dir/<namespace>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/vtysh_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 2e4510a45..966746018 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -332,6 +332,8 @@ int main(int argc, char **argv, char **env) progname = ((p = strrchr(argv[0], '/')) ? ++p : argv[0]); strlcpy(sysconfdir, frr_sysconfdir, sizeof(sysconfdir)); + + frr_init_vtydir(); strlcpy(vtydir, frr_vtydir, sizeof(vtydir)); /* Option handling. */ |