Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / mibs / ietf / RFC1269-MIB
1 RFC1269-MIB DEFINITIONS ::= BEGIN
2
3 IMPORTS
4      NetworkAddress, IpAddress, Counter
5           FROM RFC1155-SMI
6      mib-2
7           FROM RFC1213-MIB
8    OBJECT-TYPE
9           FROM RFC-1212
10      TRAP-TYPE
11           FROM RFC-1215;
12
13 -- This MIB module uses the extended OBJECT-TYPE macro as
14 -- defined in [9], and the TRAP-TYPE macro as defined
15 -- in [10].
16
17 bgp     OBJECT IDENTIFIER ::= { mib-2 15 }
18
19 bgpVersion OBJECT-TYPE
20      SYNTAX OCTET STRING
21      ACCESS read-only
22      STATUS mandatory
23      DESCRIPTION
24           "Vector of supported BGP protocol version
25           numbers. Each peer negotiates the version from
26           this vector.  Versions are identified via the
27           string of bits contained within this object.
28           The first octet contains bits 0 to 7, the
29           second octet contains bits 8 to 15, and so on,
30           with the most significant bit referring to the
31           lowest bit number in the octet (e.g., the MSB
32           of the first octet refers to bit 0).  If a bit,
33           i, is present and set, then the version (i+1)
34           of the BGP is supported."
35      ::= { bgp 1 }
36
37 bgpLocalAs OBJECT-TYPE
38      SYNTAX INTEGER (0..65535)
39      ACCESS read-only
40      STATUS mandatory
41      DESCRIPTION
42           "The local autonomous system number."
43      ::= { bgp 2 }
44
45 bgpPeerTable OBJECT-TYPE
46      SYNTAX SEQUENCE OF BgpPeerEntry
47      ACCESS not-accessible
48      STATUS mandatory
49      DESCRIPTION
50           "The bgp peer table."
51      ::= { bgp 3 }
52
53 bgpIdentifier OBJECT-TYPE
54      SYNTAX IpAddress
55      ACCESS read-only
56      STATUS mandatory
57      DESCRIPTION
58           "The BGP Identifier of local system."
59      ::= { bgp 4 }
60
61 bgpPeerEntry OBJECT-TYPE
62      SYNTAX BgpPeerEntry
63      ACCESS not-accessible
64      STATUS mandatory
65      DESCRIPTION
66           "Information about a BGP peer connection."
67      INDEX
68           { bgpPeerRemoteAddr }
69          ::= { bgpPeerTable 1 }
70
71 BgpPeerEntry ::= SEQUENCE {
72      bgpPeerIdentifier
73           IpAddress,
74      bgpPeerState
75           INTEGER,
76      bgpPeerAdminStatus
77           INTEGER,
78      bgpPeerNegotiatedVersion
79           INTEGER,
80      bgpPeerLocalAddr
81           IpAddress,
82      bgpPeerLocalPort
83           INTEGER,
84      bgpPeerRemoteAddr
85           IpAddress,
86      bgpPeerRemotePort
87           INTEGER,
88      bgpPeerRemoteAs
89           INTEGER,
90      bgpPeerInUpdates
91           Counter,
92      bgpPeerOutUpdates
93           Counter,
94      bgpPeerInTotalMessages
95           Counter,
96      bgpPeerOutTotalMessages
97           Counter,
98      bgpPeerLastError
99           OCTET STRING
100      }
101
102 bgpPeerIdentifier OBJECT-TYPE
103      SYNTAX IpAddress
104      ACCESS read-only
105      STATUS mandatory
106      DESCRIPTION
107           "The BGP Identifier of this entry's BGP peer."
108      ::= { bgpPeerEntry 1 }
109
110 bgpPeerState OBJECT-TYPE
111      SYNTAX INTEGER {
112           idle(1),
113           connect(2),
114           active(3),
115           opensent(4),
116           openconfirm(5),
117           established(6)
118      }
119      ACCESS read-only
120      STATUS mandatory
121      DESCRIPTION
122           "The bgp peer connection state. "
123      ::= { bgpPeerEntry 2 }
124
125 bgpPeerAdminStatus OBJECT-TYPE
126      SYNTAX INTEGER
127      ACCESS read-write
128      STATUS mandatory
129      DESCRIPTION
130           "The desired state of the BGP connection. A
131           transition from 'stop' to 'start' will cause
132           the BGP Start Event to be generated. A
133           transition from 'start' to 'stop' will cause
134           the BGP Stop Event to be generated. This
135           parameter can be used to restart BGP peer
136           connections.  Care should be used in providing
137           write access to this object without adequate
138           authentication."
139      ::= { bgpPeerEntry 3 }
140
141 bgpPeerNegotiatedVersion OBJECT-TYPE
142      SYNTAX INTEGER
143      ACCESS read-only
144      STATUS mandatory
145      DESCRIPTION
146           "The negotiated version of BGP running between
147           the two peers. "
148      ::= { bgpPeerEntry 4 }
149
150 bgpPeerLocalAddr OBJECT-TYPE
151      SYNTAX IpAddress
152      ACCESS read-only
153      STATUS mandatory
154      DESCRIPTION
155           "The local IP address of this entry's BGP
156           connection."
157      ::= { bgpPeerEntry 5 }
158
159 bgpPeerLocalPort OBJECT-TYPE
160      SYNTAX INTEGER (0..65535)
161      ACCESS read-only
162      STATUS mandatory
163      DESCRIPTION
164           "The local port for the TCP connection between
165           the BGP peers."
166      ::= { bgpPeerEntry 6 }
167
168 bgpPeerRemoteAddr OBJECT-TYPE
169      SYNTAX IpAddress
170      ACCESS read-only
171      STATUS mandatory
172      DESCRIPTION
173           "The remote IP address of this entry's BGP
174           peer."
175      ::= { bgpPeerEntry 7 }
176
177 bgpPeerRemotePort OBJECT-TYPE
178      SYNTAX INTEGER (0..65535)
179      ACCESS read-only
180      STATUS mandatory
181      DESCRIPTION
182           "The remote port for the TCP connection between
183           the BGP peers.  Note that the objects
184           bgpLocalAddr, bgpLocalPort, bgpRemoteAddr and
185           bgpRemotePort provide the appropriate reference
186           to the standard MIB TCP connection table."
187      ::= { bgpPeerEntry 8 }
188
189 bgpPeerRemoteAs OBJECT-TYPE
190      SYNTAX INTEGER (0..65535)
191      ACCESS read-only
192      STATUS mandatory
193      DESCRIPTION
194           "The remote autonomous system number."
195      ::= { bgpPeerEntry 9 }
196
197 bgpPeerInUpdates OBJECT-TYPE
198      SYNTAX Counter
199      ACCESS read-only
200      STATUS mandatory
201      DESCRIPTION
202           "The number of BGP UPDATE messages received on
203           this connection. This object should be
204           initialized to zero when the connection is
205           established."
206      ::= { bgpPeerEntry 10 }
207
208 bgpPeerOutUpdates OBJECT-TYPE
209      SYNTAX Counter
210      ACCESS read-only
211      STATUS mandatory
212      DESCRIPTION
213           "The number of BGP UPDATE messages received on
214           this connection. This object should be
215           initialized to zero when the connection is
216           established."
217      ::= { bgpPeerEntry 11}
218
219 bgpPeerInTotalMessages OBJECT-TYPE
220      SYNTAX Counter
221      ACCESS read-only
222      STATUS mandatory
223      DESCRIPTION
224           "The total number of messages received from the
225           remote peer on this connection. This object
226           should be initialized to zero when the
227           connection is established."
228      ::= { bgpPeerEntry 12 }
229
230 bgpPeerOutTotalMessages OBJECT-TYPE
231      SYNTAX Counter
232      ACCESS read-only
233      STATUS mandatory
234      DESCRIPTION
235           "The total number of messages transmitted to
236           the remote peer on this connection. This object
237           should be initialized to zero when the
238           connection is established."
239      ::= { bgpPeerEntry 13 }
240
241 bgpPeerLastError OBJECT-TYPE
242      SYNTAX OCTET STRING (SIZE (2))
243      ACCESS read-only
244      STATUS mandatory
245      DESCRIPTION
246           "The last error code and subcode seen by this
247           peer on this connection. If no error has
248           occurred, this field is zero. Otherwise, the
249           first byte of this two byte OCTET STRING
250           contains the error code; the second contains
251           the subcode."
252      ::= { bgpPeerEntry 14 }
253
254 bgpRcvdPathAttrTable OBJECT-TYPE
255      SYNTAX SEQUENCE OF BgpPathAttrEntry
256      ACCESS not-accessible
257      STATUS mandatory
258      DESCRIPTION
259           "The BGP Received Path Attribute Table contains
260           information about paths to destination networks
261           received by all peers."
262      ::= { bgp 5 }
263
264 bgpPathAttrEntry OBJECT-TYPE
265      SYNTAX BgpPathAttrEntry
266      ACCESS not-accessible
267      STATUS mandatory
268      DESCRIPTION
269           "Information about a path to a network."
270      INDEX
271           { bgpPathAttrDestNetwork,
272             bgpPathAttrPeer }
273      ::= { bgpRcvdPathAttrTable 1 }
274
275 BgpPathAttrEntry ::= SEQUENCE {
276      bgpPathAttrPeer
277           IpAddress,
278      bgpPathAttrDestNetwork
279           IpAddress,
280      bgpPathAttrOrigin
281           INTEGER,
282      bgpPathAttrASPath
283           OCTET STRING,
284      bgpPathAttrNextHop
285           IpAddress,
286      bgpPathAttrInterASMetric
287           INTEGER
288      }
289
290 bgpPathAttrPeer OBJECT-TYPE
291      SYNTAX IpAddress
292      ACCESS read-only
293      STATUS mandatory
294      DESCRIPTION
295           "The IP address of the peer where the path
296           information
297            was learned."
298      ::= { bgpPathAttrEntry 1 }
299
300 bgpPathAttrDestNetwork OBJECT-TYPE
301      SYNTAX IpAddress
302      ACCESS read-only
303      STATUS mandatory
304      DESCRIPTION
305           "The address of the destination network."
306      ::= { bgpPathAttrEntry 2 }
307
308 bgpPathAttrOrigin OBJECT-TYPE
309      SYNTAX INTEGER {
310           igp(1),-- networks are interior
311           egp(2),-- networks learned via EGP
312           incomplete(3) -- undetermined
313      }
314      ACCESS read-only
315      STATUS mandatory
316      DESCRIPTION
317           "The ultimate origin of the path information."
318      ::= { bgpPathAttrEntry 3 }
319
320 bgpPathAttrASPath OBJECT-TYPE
321      SYNTAX OCTET STRING
322      ACCESS read-only
323      STATUS mandatory
324      DESCRIPTION
325           "The set of ASs that must be traversed to reach
326           the network. ( This object is probably best
327           represented as SEQUENCE OF INTEGER. For SMI
328           compatibility, though, it is represented as
329           OCTET STRING. Each AS is represented as a pair
330           of octets according to the following algorithm:
331
332                first-byte-of-pair = ASNumber / 256;
333                second-byte-of-pair = ASNumber & 255;"
334      ::= { bgpPathAttrEntry 4 }
335
336 bgpPathAttrNextHop OBJECT-TYPE
337      SYNTAX IpAddress
338      ACCESS read-only
339      STATUS mandatory
340      DESCRIPTION
341           "The address of the border router that should
342           be used for the destination network."
343      ::= { bgpPathAttrEntry 5 }
344
345 bgpPathAttrInterASMetric OBJECT-TYPE
346      SYNTAX INTEGER
347      ACCESS read-only
348      STATUS mandatory
349      DESCRIPTION
350           "The optional inter-AS metric. If this
351           attribute has not been provided for this route,
352           the value for this object is 0."
353      ::= { bgpPathAttrEntry 6 }
354
355 bgpEstablished TRAP-TYPE
356      ENTERPRISE bgp
357      VARIABLES  { bgpPeerRemoteAddr,
358                bgpPeerLastError,
359                bgpPeerState }
360      DESCRIPTION
361           "The BGP Established event is generated when
362           the BGP FSM enters the ESTABLISHED state. "
363      ::= 1
364
365 bgpBackwardTransition TRAP-TYPE
366      ENTERPRISE bgp
367      VARIABLES  { bgpPeerRemoteAddr,
368                bgpPeerLastError,
369                bgpPeerState }
370      DESCRIPTION
371           "The BGPBackwardTransition Event is generated
372           when the BGP FSM moves from a higher numbered
373           state to a lower numbered state."
374      ::= 2
375 END