summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-10-18 11:51:09 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-10-18 19:48:11 +0200
commit0e06eb8b2ea1eff8c67752533d66e96bb9bebfdb (patch)
treee906e47b16d0b157368d8ad7b1af3cf65c2d9c7d /vtysh
parentlib: assign CLI varnames while parsing (diff)
downloadfrr-0e06eb8b2ea1eff8c67752533d66e96bb9bebfdb.tar.xz
frr-0e06eb8b2ea1eff8c67752533d66e96bb9bebfdb.zip
vtysh: defer CLI tree building
We don't need the CLI tree until we actually enter the node. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index beb7045a7..53349452e 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -3923,6 +3923,8 @@ void vtysh_uninit(void)
void vtysh_init_vty(void)
{
+ cmd_defer_tree(true);
+
/* Make vty structure. */
vty = vty_new();
vty->type = VTY_SHELL;