summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-14 22:21:55 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-02-14 22:23:52 +0100
commit07d1e5d99d80979f5892ce87a208a6f171298c44 (patch)
treee97264397ce436c4601e1aae6a073461be848e95 /bgpd/bgpd.h
parentMerge pull request #5810 from donaldsharp/fix_yang_routemap (diff)
downloadfrr-07d1e5d99d80979f5892ce87a208a6f171298c44.tar.xz
frr-07d1e5d99d80979f5892ce87a208a6f171298c44.zip
bgpd: Show the real reason why the peer is failed
If the peer was shutdown locally, it doesn't show up as admin. shutdown. Instead it's treated as "Waiting for peer OPEN". The same applies to when the peer reaches maximum-prefix count. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgpd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index d47ae7158..8fe58f33b 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1351,6 +1351,7 @@ struct peer {
#define PEER_DOWN_NOAFI_ACTIVATED 30 /* No AFI/SAFI activated for peer */
#define PEER_DOWN_AS_SETS_REJECT 31 /* Reject routes with AS_SET */
#define PEER_DOWN_WAITING_OPEN 32 /* Waiting for open to succeed */
+#define PEER_DOWN_PFX_COUNT 33 /* Reached received prefix count */
/*
* Remember to update peer_down_str in bgp_fsm.c when you add
* a new value to the last_reset reason