]>
Commit | Line | Data |
---|---|---|
ff18b7b0 DA |
1 | /* BGP4-MIB SNMP support |
2 | * | |
3 | * Using: http://www.circitor.fr/Mibs/Html/B/BGP4-MIB.php | |
4 | * | |
5 | * Copyright (C) 2022 Donatas Abraitis <donatas@opensourcerouting.org> | |
6 | * | |
7 | * This file is part of FRRouting (FRR). | |
8 | * | |
9 | * FRR is free software; you can redistribute it and/or modify it under the | |
10 | * terms of the GNU General Public License as published by the Free Software | |
11 | * Foundation; either version 2, or (at your option) any later version. | |
12 | * | |
13 | * FRR is distributed in the hope that it will be useful, but WITHOUT ANY | |
14 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
15 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more | |
16 | * details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License along | |
19 | * with this program; see the file COPYING; if not, write to the Free Software | |
20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
21 | */ | |
22 | ||
23 | #ifndef _FRR_BGP_SNMP_BGP4_H_ | |
24 | #define _FRR_BGP_SNMP_BGP4_H_ | |
25 | ||
26 | #define BGPVERSION 0 | |
27 | #define BGPLOCALAS 0 | |
28 | #define BGPIDENTIFIER 0 | |
29 | ||
30 | /* bgp */ | |
31 | #define BGP4MIB 1, 3, 6, 1, 2, 1, 15 | |
32 | ||
33 | /* bgpTraps */ | |
34 | #define BGPESTABLISHED 1 | |
35 | #define BGPBACKWARDTRANSITION 2 | |
36 | ||
37 | /* bgpPeerTable */ | |
38 | #define BGPPEERIDENTIFIER 1 | |
39 | #define BGPPEERSTATE 2 | |
40 | #define BGPPEERADMINSTATUS 3 | |
41 | #define BGPPEERNEGOTIATEDVERSION 4 | |
42 | #define BGPPEERLOCALADDR 5 | |
43 | #define BGPPEERLOCALPORT 6 | |
44 | #define BGPPEERREMOTEADDR 7 | |
45 | #define BGPPEERREMOTEPORT 8 | |
46 | #define BGPPEERREMOTEAS 9 | |
47 | #define BGPPEERINUPDATES 10 | |
48 | #define BGPPEEROUTUPDATES 11 | |
49 | #define BGPPEERINTOTALMESSAGES 12 | |
50 | #define BGPPEEROUTTOTALMESSAGES 13 | |
51 | #define BGPPEERLASTERROR 14 | |
52 | #define BGPPEERFSMESTABLISHEDTRANSITIONS 15 | |
53 | #define BGPPEERFSMESTABLISHEDTIME 16 | |
54 | #define BGPPEERCONNECTRETRYINTERVAL 17 | |
55 | #define BGPPEERHOLDTIME 18 | |
56 | #define BGPPEERKEEPALIVE 19 | |
57 | #define BGPPEERHOLDTIMECONFIGURED 20 | |
58 | #define BGPPEERKEEPALIVECONFIGURED 21 | |
59 | #define BGPPEERMINROUTEADVERTISEMENTINTERVAL 22 | |
60 | #define BGPPEERINUPDATEELAPSEDTIME 23 | |
61 | ||
62 | /* bgpPathAttrEntry */ | |
63 | #define BGPPATHATTRPEER 1 | |
64 | #define BGPPATHATTRDESTNETWORK 2 | |
65 | #define BGPPATHATTRORIGIN 3 | |
66 | #define BGPPATHATTRASPATH 4 | |
67 | #define BGPPATHATTRNEXTHOP 5 | |
68 | #define BGPPATHATTRINTERASMETRIC 6 | |
69 | ||
70 | /* bgp4PathAttrEntry */ | |
71 | #define BGP4PATHATTRPEER 1 | |
72 | #define BGP4PATHATTRIPADDRPREFIXLEN 2 | |
73 | #define BGP4PATHATTRIPADDRPREFIX 3 | |
74 | #define BGP4PATHATTRORIGIN 4 | |
75 | #define BGP4PATHATTRASPATHSEGMENT 5 | |
76 | #define BGP4PATHATTRNEXTHOP 6 | |
77 | #define BGP4PATHATTRMULTIEXITDISC 7 | |
78 | #define BGP4PATHATTRLOCALPREF 8 | |
79 | #define BGP4PATHATTRATOMICAGGREGATE 9 | |
80 | #define BGP4PATHATTRAGGREGATORAS 10 | |
81 | #define BGP4PATHATTRAGGREGATORADDR 11 | |
82 | #define BGP4PATHATTRCALCLOCALPREF 12 | |
83 | #define BGP4PATHATTRBEST 13 | |
84 | #define BGP4PATHATTRUNKNOWN 14 | |
85 | ||
86 | extern int bgpTrapEstablished(struct peer *peer); | |
87 | extern int bgpTrapBackwardTransition(struct peer *peer); | |
88 | extern int bgp_snmp_bgp4_init(struct thread_master *tm); | |
89 | ||
90 | #endif /* _FRR_BGP_SNMP_BGP4_H_ */ |