]> git.puffer.fish Git - mirror/frr.git/commit
vtysh: [7.0] exit-vrf cli is broken 4860/head
authorSri Mohana Singamsetty <msingamsetty@vmware.com>
Tue, 20 Aug 2019 17:52:01 +0000 (10:52 -0700)
committerSri Mohana Singamsetty <msingamsetty@vmware.com>
Tue, 20 Aug 2019 18:00:27 +0000 (11:00 -0700)
commite14e013d130900ab3783872fd68d527bfc73809b
tree07ea8475ef9d0aea929a2bc7e3fbc7fe4d157d5d
parent30e505f5a0a4c6c4f9fb3ee527bccf2ba340e50e
vtysh: [7.0] exit-vrf cli is broken

exit-vrf is not working any more, so anything configured after executing this command are still configured under that VRF context.
For example: Below configuration

vrf VRF_A
ip route 11.11.11.11/32 Null0
exit-vrf
ip route 21.21.21.21/32 Null0

results in ...

vrf VRF_A
 ip route 11.11.11.11/32 Null0
 ip route 21.21.21.21/32 Null0
 exit-vrf
!

It should have been

!
ip route 21.21.21.21/32 Null0
!
vrf VRF_A
 ip route 11.11.11.11/32 Null0
 exit-vrf
!

Porting https://github.com/FRRouting/frr/pull/4725 from FRR master.

Signed-off-by: Sri Mohana Singamsetty <msingamsetty@vmware.com>
vtysh/vtysh.c