]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: make node walkup code more generic
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Aug 2021 10:51:39 +0000 (13:51 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 26 Aug 2021 21:09:21 +0000 (00:09 +0300)
commitaf581c003b8707a86448e6c0ba77f576f87fd4ac
tree6cf7be1b7093c0a7101d0ecd7dfb9c51363d5b68
parentc1e7a5e45e135ad8047b192893a544e986d244c3
vtysh: make node walkup code more generic

No need to have special processing for every single node. Just always
use "exit" the necessary number of times - it works for all nodes.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
vtysh/vtysh.c