diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-18 20:37:04 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-18 20:37:04 +0100 |
commit | 2822296ddb22389c5b4e9b8fb6ef7c906ff99314 (patch) | |
tree | 5a05ad56e7ac5730bb98d12eef4aa527e4c7d0d9 /src/vty/vty.c | |
parent | 46cfd77f7521ad53934e1e42057723b4cd52d241 (diff) |
LOGGING: configure logging from the vty
We can now configure logging to (multiple) files, stderr and syslog
from the vty command line in a persistent way (config file)
Diffstat (limited to 'src/vty/vty.c')
-rw-r--r-- | src/vty/vty.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c index a5b16dce..c1a9b3af 100644 --- a/src/vty/vty.c +++ b/src/vty/vty.c @@ -765,6 +765,9 @@ static void vty_end_config(struct vty *vty) vty_config_unlock(vty); vty->node = ENABLE_NODE; break; + case CFG_LOG_NODE: + vty->node = CONFIG_NODE; + break; default: /* Unknown node, we have to ignore it. */ break; @@ -1129,6 +1132,9 @@ static void vty_stop_input(struct vty *vty) vty_config_unlock(vty); vty->node = ENABLE_NODE; break; + case CFG_LOG_NODE: + vty->node = CONFIG_NODE; + break; default: /* Unknown node, we have to ignore it. */ break; |