diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-01-18 23:23:45 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-02-19 09:42:34 -0300 |
| commit | c2de8b21929abc788039114af958b57a7acd07b5 (patch) | |
| tree | 4cd5d86b12f7b024d463706988878e0c121440f9 /tools/render_md.py | |
| parent | 3193c8b3d15920aad429d36670b535aebfae5248 (diff) | |
lib: simplify detection of when the user is leaving the CLI config mode
We can make use of the vty->config variable to know when the CLI
user is in the configuration mode or not. This is much simpler
than obtaining this information from the vty node, and also a more
robust solution (the three switch statements below, for example,
were out of sync).
Also, fix a bug where vty->config wasn't being unset in the
vty_config_exit() function (bug introduced by commit f344c66ea3).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tools/render_md.py')
0 files changed, 0 insertions, 0 deletions
