summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-05-31 01:55:26 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-06-05 01:52:46 +0200
commit43e587c1d10175519f16abe0779cc11f7f789c15 (patch)
treee1f3e442e7455d404327a64dfc61ca562b2b9999 /vtysh
parent*: Convert to using frr_vtydir instead of DAEMON_VTY_DIR (diff)
downloadfrr-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.c2
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. */