]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: [GR] fix mode change vtysh return code 15924/head
authorChirag Shah <chirag@nvidia.com>
Fri, 2 Feb 2024 20:11:58 +0000 (12:11 -0800)
committerChirag Shah <chirag@nvidia.com>
Sun, 5 May 2024 03:33:49 +0000 (20:33 -0700)
commit0a8d85aacffe048e8b026479dfc2c072f75e813e
treefe6db9d40567f29cfe01542d1d4eec07f6725de7
parent53820a5753c63bf30b6346fc39ce879a9c2abccf
bgpd: [GR] fix mode change vtysh return code

When a bgp neighbor graceful-restart config mode change
is applied, after accepting the config if it does not
take effect instead of throwing vtysh error code,
return the success to vtysh and warn the user.
The debug log is already present at critical code point
where GR failure is seen during config apply.

Ticket: #3761481
Testing Done:

root@tor-1:# vtysh -c 'config t' -c 'router bgp 65564
vrf VRF2' -c 'neighbor 20.1.1.1 graceful-restart'
As part of configuring graceful-restart, capability send to zebra failed
root@tor-1:# echo $?
0

Signed-off-by: Chirag Shah <chirag@nvidia.com>
bgpd/bgp_vty.c