]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix bgp_get_vty return values
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 23 Apr 2021 18:36:12 +0000 (21:36 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 26 Apr 2021 20:16:51 +0000 (23:16 +0300)
commitd09328e5991c9f657758921264492825e7081175
treea6e8d28f605cbc32ed750832d932dc1c19e440eb
parent9a92b4e75d87a5c838c2cb89b5bc8ce676cac671
bgpd: fix bgp_get_vty return values

There are multiple problems:
- commit ef7c53e2 introduced a new return value 2 which broke things,
  because a lot of code treats non-zero return as an error,
- there is an incorrect error returned when AS number mismatches.

This commit fixes both.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_evpn.c
bgpd/bgp_nb_config.c
bgpd/bgpd.c
bgpd/bgpd.h