summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-04-23 20:36:12 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-04-26 22:16:51 +0200
commitd09328e5991c9f657758921264492825e7081175 (patch)
treea6e8d28f605cbc32ed750832d932dc1c19e440eb /bgpd/bgpd.h
parentMerge pull request #8548 from donaldsharp/bgp_dampening (diff)
downloadfrr-d09328e5991c9f657758921264492825e7081175.tar.xz
frr-d09328e5991c9f657758921264492825e7081175.zip
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>
Diffstat (limited to '')
-rw-r--r--bgpd/bgpd.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index f9aa62c68..51134dc8c 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1844,7 +1844,6 @@ enum bgp_clear_type {
/* BGP error codes. */
#define BGP_SUCCESS 0
#define BGP_CREATED 1
-#define BGP_INSTANCE_EXISTS 2
#define BGP_ERR_INVALID_VALUE -1
#define BGP_ERR_INVALID_FLAG -2
#define BGP_ERR_INVALID_AS -3