diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-10-22 19:43:26 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-10-22 19:43:26 +0200 |
commit | 8ec7f901bb1843b7c29335d5ea0531e7a1527210 (patch) | |
tree | 5996146c0e869fd883158cb1872f7a8aea54186c /src/vty | |
parent | 2da47f1d6bf4b335c26d96f082d0a48a5cf7f8e6 (diff) |
logging: Make sure to install standard "end" command in VTY node
When you are in the config-log VTY node, you expect "end" to work
like in any other sub-node of config.
Diffstat (limited to 'src/vty')
-rw-r--r-- | src/vty/logging_vty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c index 971ec3b6..d473f129 100644 --- a/src/vty/logging_vty.c +++ b/src/vty/logging_vty.c @@ -592,6 +592,8 @@ void logging_vty_add_cmds(const struct log_info *cat) install_element_ve(&show_logging_vty_cmd); install_node(&cfg_log_node, config_write_log); + install_default(CFG_LOG_NODE); + install_element(CFG_LOG_NODE, &config_end_cmd); install_element(CFG_LOG_NODE, &logging_fltr_all_cmd); install_element(CFG_LOG_NODE, &logging_use_clr_cmd); install_element(CFG_LOG_NODE, &logging_prnt_timestamp_cmd); |