summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_errors.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-02-19 16:52:14 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-02-19 16:52:14 +0100
commit3dbe2b6061ba07711584a87b714e76da92c4f8fa (patch)
tree5976c7c28a57c378d50f7aab4e1f19a9e27d420c /bgpd/bgp_errors.c
parentMerge pull request #5802 from ton31337/feature/aggregate-address_origin_override (diff)
downloadfrr-3dbe2b6061ba07711584a87b714e76da92c4f8fa.tar.xz
frr-3dbe2b6061ba07711584a87b714e76da92c4f8fa.zip
bgpd: Add a better breadcrumb for when bgp is missconfiged
Currently During bgp open collision resolution if both the router-id's are the same, we correctly follow the RFC and close the connection. The problem is of course that there is no notification of the error in configuration to the end user other than a subtle open debug message. Explicitly call out the miss-configuration as an error message as that this miss-config took several hours of debugging to notice. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_errors.c')
-rw-r--r--bgpd/bgp_errors.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_errors.c b/bgpd/bgp_errors.c
index d9aba87e3..8a33ce678 100644
--- a/bgpd/bgp_errors.c
+++ b/bgpd/bgp_errors.c
@@ -457,6 +457,12 @@ static struct log_ref ferr_bgp_err[] = {
.suggestion = "Gather data and open a Issue so that this developmental escape can be fixed, the peer should have been reset",
},
{
+ .code = EC_BGP_ROUTER_ID_SAME,
+ .title = "BGP has detected a duplicate router id during collision resolution",
+ .description = "As part of normal collision detection for opening a connection to a peer, BGP has detected that the remote peer's router-id is the same as ours",
+ .suggestion = "Change one of the two router-id's",
+ },
+ {
.code = END_FERR,
}
};