]> git.puffer.fish Git - mirror/frr.git/commit
lib: update the CLI xpath index when exiting from the VRF node 6318/head
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 29 Apr 2020 21:49:29 +0000 (18:49 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 29 Apr 2020 21:49:29 +0000 (18:49 -0300)
commit799a81df9d1c9abfc525fffd53983226fd5233c1
treed8da70d0d11ef712c0c9d7980f6f6d5ac08ee528
parenta276f04a3f97b4d5931305927e199e85c8ba0ecb
lib: update the CLI xpath index when exiting from the VRF node

All custom "exit-*" commands that exit from a YANG-modeled
CLI node need to use cmd_exit() to ensure the CLI xpath index
(vty->xpath_index) will be updated accordingly.

Fixes #6316.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/vrf.c