]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: fix duplicated output of key chain configuration
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 13 Aug 2021 23:09:54 +0000 (02:09 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 3 Dec 2021 15:52:42 +0000 (18:52 +0300)
commit4b639f996759eef388c42ca657a520de693ac6fc
tree18ba29ae89109a9ebd58eb8df180d520620d0ba9
parent31ccdb903ffca482c1cca5b9222204848a6cdeb1
vtysh: fix duplicated output of key chain configuration

When both ripd and eigrpd run at the same time, all key configuration in
key chain node is duplicated. This change adds a concept of nested nodes
into vtysh to fix the issue.

Before:
```
key chain test
 key 1
  key-string 1
 exit
 key 1
  key-string 1
 exit
exit
!
```
After:
```
key chain test
 key 1
  key-string 1
 exit
exit
!
```

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