]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Convert bgp error codes for cli input to an enum
authorDonald Sharp <sharpd@nvidia.com>
Tue, 15 Feb 2022 20:53:30 +0000 (15:53 -0500)
committermergify-bot <noreply@mergify.com>
Thu, 17 Feb 2022 16:08:55 +0000 (16:08 +0000)
commit152487b3e5b44e4e75898b0d80a2c8e4577ec76d
treee1383066b58dba61a2ff7f27959990374e2b7b23
parentbeaab6f79f00a89592e01d6046e9f3609e283a04
bgpd: Convert bgp error codes for cli input to an enum

Conversion of bgp error codes returned for cli input into
an enum and then properly handling all the error cases
in bgp_vty_return.

Because not all error codes returned were properly handled
in this function there existed configuration examples that
were accepted on the cli without an error message but not
saved.

Fixes: #10589
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 4b7e23e9f2822def568cc9dd1a942d9d36cbb3a5)
bgpd/bgp_vty.c
bgpd/bgpd.h