diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2021-10-18 11:51:09 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-10-18 19:48:11 +0200 |
commit | 0e06eb8b2ea1eff8c67752533d66e96bb9bebfdb (patch) | |
tree | e906e47b16d0b157368d8ad7b1af3cf65c2d9c7d /vtysh | |
parent | lib: assign CLI varnames while parsing (diff) | |
download | frr-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.c | 2 |
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; |