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 /lib/grammar_sandbox.c | |
| parent | 8005767b2e5c177d0185a1541c7393d9ed8d1712 (diff) | |
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 'lib/grammar_sandbox.c')
| -rw-r--r-- | lib/grammar_sandbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c index 209765bd6f..f9778c5d4c 100644 --- a/lib/grammar_sandbox.c +++ b/lib/grammar_sandbox.c @@ -395,6 +395,7 @@ DEFUN (grammar_findambig, vector_slot(cmdvec, scannode++); if (!cnode) continue; + cmd_finalize_node(cnode); nodegraph = cnode->cmdgraph; if (!nodegraph) continue; @@ -466,6 +467,7 @@ DEFUN (grammar_access, } vty_out(vty, "node %d\n", (int)cnode->node); + cmd_finalize_node(cnode); nodegraph = cnode->cmdgraph; return CMD_SUCCESS; } |
