bridge_tree.def revision 216594
1#-
2# Copyright (c) 2006 Shteryana Shopova <syrinx@FreeBSD.org>
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions
7# are met:
8# 1. Redistributions of source code must retain the above copyright
9#    notice, this list of conditions and the following disclaimer.
10# 2. Redistributions in binary form must reproduce the above copyright
11#    notice, this list of conditions and the following disclaimer in the
12#    documentation and/or other materials provided with the distribution.
13#
14# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24# SUCH DAMAGE.
25#
26# $FreeBSD: head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def 216594 2010-12-20 17:13:14Z syrinx $
27#
28
29include "tc.def"
30
31typedef TruthValue ENUM (
32	1 true
33	2 false
34)
35
36typedef StpPortState ENUM (
37	1 disabled
38	2 blocking
39	3 listening
40	4 learning
41	5 forwarding
42	6 broken
43)
44
45typedef StpPortAdminPointToPointType ENUM (
46	0 forceTrue
47	1 forceFalse
48	2 auto
49)
50
51typedef BaseType ENUM (
52	1 unknown
53	2 transparent-only
54	3 sourceroute-only
55	4 srt
56)
57
58typedef TpFdbStatus ENUM (
59	1 other
60	2 invalid
61	3 learned
62	4 self
63	5 mgmt
64)
65
66(1 internet
67  (2 mgmt
68    (1 mib_2
69      (17 dot1dBridge
70        (0 dot1dNotifications
71          (1 newRoot OID op_snmp_trap)
72          (2 topologyChange OID op_snmp_trap)
73        )
74        (1 dot1dBase
75          (1 dot1dBaseBridgeAddress OCTETSTRING | MacAddress op_dot1d_base GET)
76          (2 dot1dBaseNumPorts INTEGER32 op_dot1d_base GET)
77          (3 dot1dBaseType BaseType op_dot1d_base GET)
78          (4 dot1dBasePortTable
79            (1 dot1dBasePortEntry : INTEGER op_dot1d_base_port
80              (1 dot1dBasePort INTEGER GET)
81              (2 dot1dBasePortIfIndex INTEGER GET)
82              (3 dot1dBasePortCircuit OID GET)
83              (4 dot1dBasePortDelayExceededDiscards COUNTER GET)
84              (5 dot1dBasePortMtuExceededDiscards COUNTER GET)
85          ))
86        )
87        (2 dot1dStp
88          (1 dot1dStpProtocolSpecification ENUM ( 1 unknown 2 decLb100 3 ieee8021d ) op_dot1d_stp GET)
89          (2 dot1dStpPriority INTEGER op_dot1d_stp GET SET)
90          (3 dot1dStpTimeSinceTopologyChange TIMETICKS op_dot1d_stp GET)
91          (4 dot1dStpTopChanges COUNTER op_dot1d_stp GET)
92          (5 dot1dStpDesignatedRoot OCTETSTRING | BridgeId op_dot1d_stp GET)
93          (6 dot1dStpRootCost INTEGER32 op_dot1d_stp GET)
94          (7 dot1dStpRootPort INTEGER32 op_dot1d_stp GET)
95          (8 dot1dStpMaxAge INTEGER op_dot1d_stp GET)
96          (9 dot1dStpHelloTime INTEGER op_dot1d_stp GET)
97          (10 dot1dStpHoldTime INTEGER32 op_dot1d_stp GET)
98          (11 dot1dStpForwardDelay INTEGER op_dot1d_stp GET)
99          (12 dot1dStpBridgeMaxAge INTEGER op_dot1d_stp GET SET)
100          (13 dot1dStpBridgeHelloTime INTEGER op_dot1d_stp GET SET)
101          (14 dot1dStpBridgeForwardDelay INTEGER op_dot1d_stp GET SET)
102          (15 dot1dStpPortTable
103            (1 dot1dStpPortEntry : INTEGER op_dot1d_stp_port
104              (1 dot1dStpPort INTEGER GET)
105              (2 dot1dStpPortPriority INTEGER GET SET)
106              (3 dot1dStpPortState StpPortState GET)
107              (4 dot1dStpPortEnable ENUM ( 1 enabled 2 disabled ) GET SET)
108              (5 dot1dStpPortPathCost INTEGER GET SET)
109              (6 dot1dStpPortDesignatedRoot OCTETSTRING | BridgeId GET)
110              (7 dot1dStpPortDesignatedCost INTEGER32 GET)
111              (8 dot1dStpPortDesignatedBridge OCTETSTRING | BridgeId GET)
112              (9 dot1dStpPortDesignatedPort OCTETSTRING | BridgePortId GET)
113              (10 dot1dStpPortForwardTransitions COUNTER GET)
114          ))
115          (16 dot1dStpVersion ENUM ( 0 stpCompatible 2 rstp ) op_dot1d_stp GET SET)
116          (17 dot1dStpTxHoldCount INTEGER op_dot1d_stp GET SET)
117          (19 dot1dStpExtPortTable
118            (1 dot1dStpExtPortEntry : INTEGER op_dot1d_stp_ext_port
119              (1 dot1dStpPortProtocolMigration TruthValue GET)	# SET
120              (2 dot1dStpPortAdminEdgePort TruthValue GET SET)
121              (3 dot1dStpPortOperEdgePort TruthValue GET)
122              (4 dot1dStpPortAdminPointToPoint StpPortAdminPointToPointType GET SET)
123              (5 dot1dStpPortOperPointToPoint TruthValue GET)
124              (6 dot1dStpPortAdminPathCost INTEGER GET SET)
125          ))
126        )
127        (3 dot1dSr
128        )
129        (4 dot1dTp
130          (1 dot1dTpLearnedEntryDiscards COUNTER op_dot1d_tp GET)
131          (2 dot1dTpAgingTime INTEGER op_dot1d_tp GET SET)
132          (3 dot1dTpFdbTable
133            (1 dot1dTpFdbEntry : OCTETSTRING | MacAddress op_dot1d_tp_fdb
134              (1 dot1dTpFdbAddress OCTETSTRING | MacAddress GET)
135              (2 dot1dTpFdbPort INTEGER32 GET)
136              (3 dot1dTpFdbStatus TpFdbStatus GET)
137          ))
138          (4 dot1dTpPortTable
139            (1 dot1dTpPortEntry : INTEGER op_dot1d_tp_port
140              (1 dot1dTpPort INTEGER GET)
141              (2 dot1dTpPortMaxInfo INTEGER32 GET)
142              (3 dot1dTpPortInFrames COUNTER GET)
143              (4 dot1dTpPortOutFrames COUNTER GET)
144              (5 dot1dTpPortInDiscards COUNTER GET)
145          ))
146        )
147        (5 dot1dStatic
148        )
149        (8 dot1dConformance
150          (1 dot1dGroups
151          )
152          (2 dot1dCompliances
153          )
154        )
155      )
156      (134 rstpMIB
157        (0 rstpNotifications
158        )
159        (1 rstpObjects
160        )
161        (2 rstpConformance
162          (1 rstpGroups
163          )
164          (2 rstpCompliances
165          )
166        )
167  )))
168  (4 private
169    (1 enterprises
170      (12325 fokus
171        (1 begemot
172          (205 begemotBridge
173            (0 begemotBridgeNotifications
174              (1 begemotBridgeNewRoot OID op_snmp_trap)
175              (2 begemotBridgeTopologyChange OID op_snmp_trap)
176            )
177            (1 begemotBridgeBase
178              (1 begemotBridgeBaseTable
179                (1 begemotBridgeBaseEntry : OCTETSTRING | BridgeIfName op_begemot_base_bridge
180                  (1 begemotBridgeBaseName OCTETSTRING | BridgeIfName GET)
181                  (2 begemotBridgeBaseAddress OCTETSTRING | MacAddress GET)
182                  (3 begemotBridgeBaseNumPorts INTEGER32 GET)
183                  (4 begemotBridgeBaseType BaseType GET)
184                  (5 begemotBridgeBaseStatus RowStatus GET SET)
185              ))
186              (2 begemotBridgeBasePortTable
187                (1 begemotBridgeBasePortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_base_port
188                  (1 begemotBridgeBasePort INTEGER GET)
189                  (2 begemotBridgeBasePortIfIndex INTEGER GET)
190                  (3 begemotBridgeBaseSpanEnabled ENUM ( 1 enabled 2 disabled ) GET SET)
191                  (4 begemotBridgeBasePortDelayExceededDiscards COUNTER GET)
192                  (5 begemotBridgeBasePortMtuExceededDiscards COUNTER GET)
193                  (6 begemotBridgeBasePortStatus RowStatus GET SET)
194                  (7 begemotBridgeBasePortPrivate TruthValue GET SET)
195              ))
196            )
197            (2 begemotBridgeStp
198              (1 begemotBridgeStpTable
199                (1 begemotBridgeStpEntry : OCTETSTRING | BridgeIfName op_begemot_stp
200                  (1 begemotBridgeStpProtocolSpecification ENUM ( 1 unknown 2 decLb100 3 ieee8021d ) GET)
201                  (2 begemotBridgeStpPriority INTEGER GET SET)
202                  (3 begemotBridgeStpTimeSinceTopologyChange TIMETICKS GET)
203                  (4 begemotBridgeStpTopChanges COUNTER GET)
204                  (5 begemotBridgeStpDesignatedRoot OCTETSTRING | BridgeId GET)
205                  (6 begemotBridgeStpRootCost INTEGER32 GET)
206                  (7 begemotBridgeStpRootPort INTEGER32 GET)
207                  (8 begemotBridgeStpMaxAge INTEGER GET)
208                  (9 begemotBridgeStpHelloTime INTEGER GET)
209                  (10 begemotBridgeStpHoldTime INTEGER32 GET)
210                  (11 begemotBridgeStpForwardDelay INTEGER GET)
211                  (12 begemotBridgeStpBridgeMaxAge INTEGER GET SET)
212                  (13 begemotBridgeStpBridgeHelloTime INTEGER GET SET)
213                  (14 begemotBridgeStpBridgeForwardDelay INTEGER GET SET)
214                  (15 begemotBridgeStpVersion ENUM ( 0 stpCompatible 2 rstp ) GET SET)
215                  (16 begemotBridgeStpTxHoldCount INTEGER GET SET)
216              ))
217              (2 begemotBridgeStpPortTable
218                (1 begemotBridgeStpPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_stp_port
219                  (1 begemotBridgeStpPort INTEGER GET)
220                  (2 begemotBridgeStpPortPriority INTEGER GET SET)
221                  (3 begemotBridgeStpPortState StpPortState GET)
222                  (4 begemotBridgeStpPortEnable ENUM ( 1 enabled 2 disabled ) GET SET)
223                  (5 begemotBridgeStpPortPathCost INTEGER GET SET)
224                  (6 begemotBridgeStpPortDesignatedRoot OCTETSTRING | BridgeId GET)
225                  (7 begemotBridgeStpPortDesignatedCost INTEGER32 GET)
226                  (8 begemotBridgeStpPortDesignatedBridge OCTETSTRING | BridgeId GET)
227                  (9 begemotBridgeStpPortDesignatedPort OCTETSTRING | BridgePortId GET)
228                  (10 begemotBridgeStpPortForwardTransitions COUNTER GET)
229              ))
230              (3 begemotBridgeStpExtPortTable
231                (1 begemotBridgeStpExtPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_stp_ext_port
232                  (1 begemotBridgeStpPortProtocolMigration TruthValue GET)	# SET
233                  (2 begemotBridgeStpPortAdminEdgePort TruthValue GET SET)
234                  (3 begemotBridgeStpPortOperEdgePort TruthValue GET)
235                  (4 begemotBridgeStpPortAdminPointToPoint StpPortAdminPointToPointType GET SET)
236                  (5 begemotBridgeStpPortOperPointToPoint TruthValue GET)
237                  (6 begemotBridgeStpPortAdminPathCost INTEGER GET SET)
238              ))
239            )
240            (3 begemotBridgeTp
241              (1 begemotBridgeTpTable
242                (1 begemotBridgeTpEntry : OCTETSTRING | BridgeIfName op_begemot_tp
243                  (1 begemotBridgeTpLearnedEntryDiscards COUNTER GET)
244                  (2 begemotBridgeTpAgingTime INTEGER GET SET)
245                  (3 begemotBridgeTpMaxAddresses INTEGER GET SET)
246              ))
247              (2 begemotBridgeTpFdbTable
248                (1 begemotBridgeTpFdbEntry : OCTETSTRING | BridgeIfName OCTETSTRING | MacAddress op_begemot_tp_fdb
249                  (1 begemotBridgeTpFdbAddress OCTETSTRING | MacAddress GET)
250                  (2 begemotBridgeTpFdbPort INTEGER32 GET)
251                  (3 begemotBridgeTpFdbStatus TpFdbStatus GET)
252              ))
253              (3 begemotBridgeTpPortTable
254                (1 begemotBridgeTpPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_tp_port
255                  (1 begemotBridgeTpPort INTEGER GET)
256                  (2 begemotBridgeTpPortMaxInfo INTEGER32 GET)
257                  (3 begemotBridgeTpPortInFrames COUNTER GET)
258                  (4 begemotBridgeTpPortOutFrames COUNTER GET)
259                  (5 begemotBridgeTpPortInDiscards COUNTER GET)
260              ))
261            )
262            (4 begemotBridgePf
263              (1 begemotBridgePfilStatus TruthValue op_begemot_bridge_pf GET SET)
264              (2 begemotBridgePfilMembers TruthValue op_begemot_bridge_pf GET SET)
265              (3 begemotBridgePfilIpOnly TruthValue op_begemot_bridge_pf GET SET)
266              (4 begemotBridgeLayer2PfStatus ENUM ( 1 enabled 2 disabled ) op_begemot_bridge_pf GET SET)
267            )
268            (5 begemotBridgeConfigObjects
269              (1 begemotBridgeDefaultBridgeIf OCTETSTRING | BridgeIfNameOrEmpty op_begemot_bridge_config GET SET)
270              (2 begemotBridgeDataUpdate INTEGER op_begemot_bridge_config GET SET)
271              (3 begemotBridgeDataPoll INTEGER op_begemot_bridge_config GET SET)
272	    )
273  )))))
274)
275