]> git.proxmox.com Git - mirror_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)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 15 Feb 2022 21:38:32 +0000 (16:38 -0500)
commit4b7e23e9f2822def568cc9dd1a942d9d36cbb3a5
tree58508a1d91e82503d57f4a6693c0db2840f6a44e
parentb5d6f2d068346e532d132421c52277206368c8af
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>
bgpd/bgp_vty.c
bgpd/bgpd.h