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# 27 28#include "tc.def" 29 30typedef RowStatus ENUM ( 31 1 active 32 2 notInService 33 3 notReady 34 4 createAndGo 35 5 createAndWait 36 6 destroy 37) 38 39typedef TruthValue ENUM ( 40 1 true 41 2 false 42) 43 44typedef StpPortState ENUM ( 45 1 disabled 46 2 blocking 47 3 listening 48 4 learning 49 5 forwarding 50 6 broken 51) 52 53typedef StpPortAdminPointToPointType ENUM ( 54 0 forceTrue 55 1 forceFalse 56 2 auto 57) 58 59typedef BaseType ENUM ( 60 1 unknown 61 2 transparent-only 62 3 sourceroute-only 63 4 srt 64) 65 66typedef TpFdbStatus ENUM ( 67 1 other 68 2 invalid 69 3 learned 70 4 self 71 5 mgmt 72) 73 74(1 internet 75 (2 mgmt 76 (1 mib_2 77 (17 dot1dBridge 78 (0 dot1dNotifications 79 (1 newRoot OID op_snmp_trap) 80 (2 topologyChange OID op_snmp_trap) 81 ) 82 (1 dot1dBase 83 (1 dot1dBaseBridgeAddress OCTETSTRING | MacAddress op_dot1d_base GET) 84 (2 dot1dBaseNumPorts INTEGER32 op_dot1d_base GET) 85 (3 dot1dBaseType BaseType op_dot1d_base GET) 86 (4 dot1dBasePortTable 87 (1 dot1dBasePortEntry : INTEGER op_dot1d_base_port 88 (1 dot1dBasePort INTEGER GET) 89 (2 dot1dBasePortIfIndex INTEGER GET) 90 (3 dot1dBasePortCircuit OID GET) 91 (4 dot1dBasePortDelayExceededDiscards COUNTER GET) 92 (5 dot1dBasePortMtuExceededDiscards COUNTER GET) 93 )) 94 ) 95 (2 dot1dStp 96 (1 dot1dStpProtocolSpecification ENUM ( 1 unknown 2 decLb100 3 ieee8021d ) op_dot1d_stp GET) 97 (2 dot1dStpPriority INTEGER op_dot1d_stp GET SET) 98 (3 dot1dStpTimeSinceTopologyChange TIMETICKS op_dot1d_stp GET) 99 (4 dot1dStpTopChanges COUNTER op_dot1d_stp GET) 100 (5 dot1dStpDesignatedRoot OCTETSTRING | BridgeId op_dot1d_stp GET) 101 (6 dot1dStpRootCost INTEGER32 op_dot1d_stp GET) 102 (7 dot1dStpRootPort INTEGER32 op_dot1d_stp GET) 103 (8 dot1dStpMaxAge INTEGER op_dot1d_stp GET) 104 (9 dot1dStpHelloTime INTEGER op_dot1d_stp GET) 105 (10 dot1dStpHoldTime INTEGER32 op_dot1d_stp GET) 106 (11 dot1dStpForwardDelay INTEGER op_dot1d_stp GET) 107 (12 dot1dStpBridgeMaxAge INTEGER op_dot1d_stp GET SET) 108 (13 dot1dStpBridgeHelloTime INTEGER op_dot1d_stp GET SET) 109 (14 dot1dStpBridgeForwardDelay INTEGER op_dot1d_stp GET SET) 110 (15 dot1dStpPortTable 111 (1 dot1dStpPortEntry : INTEGER op_dot1d_stp_port 112 (1 dot1dStpPort INTEGER GET) 113 (2 dot1dStpPortPriority INTEGER GET SET) 114 (3 dot1dStpPortState StpPortState GET) 115 (4 dot1dStpPortEnable ENUM ( 1 enabled 2 disabled ) GET SET) 116 (5 dot1dStpPortPathCost INTEGER GET SET) 117 (6 dot1dStpPortDesignatedRoot OCTETSTRING | BridgeId GET) 118 (7 dot1dStpPortDesignatedCost INTEGER32 GET) 119 (8 dot1dStpPortDesignatedBridge OCTETSTRING | BridgeId GET) 120 (9 dot1dStpPortDesignatedPort OCTETSTRING | BridgePortId GET) 121 (10 dot1dStpPortForwardTransitions COUNTER GET) 122 )) 123 (16 dot1dStpVersion ENUM ( 0 stpCompatible 2 rstp ) op_dot1d_stp GET SET) 124 (17 dot1dStpTxHoldCount INTEGER op_dot1d_stp GET SET) 125 (19 dot1dStpExtPortTable 126 (1 dot1dStpExtPortEntry : INTEGER op_dot1d_stp_ext_port 127 (1 dot1dStpPortProtocolMigration TruthValue GET) # SET 128 (2 dot1dStpPortAdminEdgePort TruthValue GET SET) 129 (3 dot1dStpPortOperEdgePort TruthValue GET) 130 (4 dot1dStpPortAdminPointToPoint StpPortAdminPointToPointType GET SET) 131 (5 dot1dStpPortOperPointToPoint TruthValue GET) 132 (6 dot1dStpPortAdminPathCost INTEGER GET SET) 133 )) 134 ) 135 (3 dot1dSr 136 ) 137 (4 dot1dTp 138 (1 dot1dTpLearnedEntryDiscards COUNTER op_dot1d_tp GET) 139 (2 dot1dTpAgingTime INTEGER op_dot1d_tp GET SET) 140 (3 dot1dTpFdbTable 141 (1 dot1dTpFdbEntry : OCTETSTRING | MacAddress op_dot1d_tp_fdb 142 (1 dot1dTpFdbAddress OCTETSTRING | MacAddress GET) 143 (2 dot1dTpFdbPort INTEGER32 GET) 144 (3 dot1dTpFdbStatus TpFdbStatus GET) 145 )) 146 (4 dot1dTpPortTable 147 (1 dot1dTpPortEntry : INTEGER op_dot1d_tp_port 148 (1 dot1dTpPort INTEGER GET) 149 (2 dot1dTpPortMaxInfo INTEGER32 GET) 150 (3 dot1dTpPortInFrames COUNTER GET) 151 (4 dot1dTpPortOutFrames COUNTER GET) 152 (5 dot1dTpPortInDiscards COUNTER GET) 153 )) 154 ) 155 (5 dot1dStatic 156 ) 157 (8 dot1dConformance 158 (1 dot1dGroups 159 ) 160 (2 dot1dCompliances 161 ) 162 ) 163 ) 164 (134 rstpMIB 165 (0 rstpNotifications 166 ) 167 (1 rstpObjects 168 ) 169 (2 rstpConformance 170 (1 rstpGroups 171 ) 172 (2 rstpCompliances 173 ) 174 ) 175 ))) 176 (4 private 177 (1 enterprises 178 (12325 fokus 179 (1 begemot 180 (205 begemotBridge 181 (0 begemotBridgeNotifications 182 (1 begemotBridgeNewRoot OID op_snmp_trap) 183 (2 begemotBridgeTopologyChange OID op_snmp_trap) 184 ) 185 (1 begemotBridgeBase 186 (1 begemotBridgeBaseTable 187 (1 begemotBridgeBaseEntry : OCTETSTRING | BridgeIfName op_begemot_base_bridge 188 (1 begemotBridgeBaseName OCTETSTRING | BridgeIfName GET) 189 (2 begemotBridgeBaseAddress OCTETSTRING | MacAddress GET) 190 (3 begemotBridgeBaseNumPorts INTEGER32 GET) 191 (4 begemotBridgeBaseType BaseType GET) 192 (5 begemotBridgeBaseStatus RowStatus GET SET) 193 )) 194 (2 begemotBridgeBasePortTable 195 (1 begemotBridgeBasePortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_base_port 196 (1 begemotBridgeBasePort INTEGER GET) 197 (2 begemotBridgeBasePortIfIndex INTEGER GET) 198 (3 begemotBridgeBaseSpanEnabled ENUM ( 1 enabled 2 disabled ) GET SET) 199 (4 begemotBridgeBasePortDelayExceededDiscards COUNTER GET) 200 (5 begemotBridgeBasePortMtuExceededDiscards COUNTER GET) 201 (6 begemotBridgeBasePortStatus RowStatus GET SET) 202 (7 begemotBridgeBasePortPrivate TruthValue GET SET) 203 )) 204 ) 205 (2 begemotBridgeStp 206 (1 begemotBridgeStpTable 207 (1 begemotBridgeStpEntry : OCTETSTRING | BridgeIfName op_begemot_stp 208 (1 begemotBridgeStpProtocolSpecification ENUM ( 1 unknown 2 decLb100 3 ieee8021d ) GET) 209 (2 begemotBridgeStpPriority INTEGER GET SET) 210 (3 begemotBridgeStpTimeSinceTopologyChange TIMETICKS GET) 211 (4 begemotBridgeStpTopChanges COUNTER GET) 212 (5 begemotBridgeStpDesignatedRoot OCTETSTRING | BridgeId GET) 213 (6 begemotBridgeStpRootCost INTEGER32 GET) 214 (7 begemotBridgeStpRootPort INTEGER32 GET) 215 (8 begemotBridgeStpMaxAge INTEGER GET) 216 (9 begemotBridgeStpHelloTime INTEGER GET) 217 (10 begemotBridgeStpHoldTime INTEGER32 GET) 218 (11 begemotBridgeStpForwardDelay INTEGER GET) 219 (12 begemotBridgeStpBridgeMaxAge INTEGER GET SET) 220 (13 begemotBridgeStpBridgeHelloTime INTEGER GET SET) 221 (14 begemotBridgeStpBridgeForwardDelay INTEGER GET SET) 222 (15 begemotBridgeStpVersion ENUM ( 0 stpCompatible 2 rstp ) GET SET) 223 (16 begemotBridgeStpTxHoldCount INTEGER GET SET) 224 )) 225 (2 begemotBridgeStpPortTable 226 (1 begemotBridgeStpPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_stp_port 227 (1 begemotBridgeStpPort INTEGER GET) 228 (2 begemotBridgeStpPortPriority INTEGER GET SET) 229 (3 begemotBridgeStpPortState StpPortState GET) 230 (4 begemotBridgeStpPortEnable ENUM ( 1 enabled 2 disabled ) GET SET) 231 (5 begemotBridgeStpPortPathCost INTEGER GET SET) 232 (6 begemotBridgeStpPortDesignatedRoot OCTETSTRING | BridgeId GET) 233 (7 begemotBridgeStpPortDesignatedCost INTEGER32 GET) 234 (8 begemotBridgeStpPortDesignatedBridge OCTETSTRING | BridgeId GET) 235 (9 begemotBridgeStpPortDesignatedPort OCTETSTRING | BridgePortId GET) 236 (10 begemotBridgeStpPortForwardTransitions COUNTER GET) 237 )) 238 (3 begemotBridgeStpExtPortTable 239 (1 begemotBridgeStpExtPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_stp_ext_port 240 (1 begemotBridgeStpPortProtocolMigration TruthValue GET) # SET 241 (2 begemotBridgeStpPortAdminEdgePort TruthValue GET SET) 242 (3 begemotBridgeStpPortOperEdgePort TruthValue GET) 243 (4 begemotBridgeStpPortAdminPointToPoint StpPortAdminPointToPointType GET SET) 244 (5 begemotBridgeStpPortOperPointToPoint TruthValue GET) 245 (6 begemotBridgeStpPortAdminPathCost INTEGER GET SET) 246 )) 247 ) 248 (3 begemotBridgeTp 249 (1 begemotBridgeTpTable 250 (1 begemotBridgeTpEntry : OCTETSTRING | BridgeIfName op_begemot_tp 251 (1 begemotBridgeTpLearnedEntryDiscards COUNTER GET) 252 (2 begemotBridgeTpAgingTime INTEGER GET SET) 253 (3 begemotBridgeTpMaxAddresses INTEGER GET SET) 254 )) 255 (2 begemotBridgeTpFdbTable 256 (1 begemotBridgeTpFdbEntry : OCTETSTRING | BridgeIfName OCTETSTRING | MacAddress op_begemot_tp_fdb 257 (1 begemotBridgeTpFdbAddress OCTETSTRING | MacAddress GET) 258 (2 begemotBridgeTpFdbPort INTEGER32 GET) 259 (3 begemotBridgeTpFdbStatus TpFdbStatus GET) 260 )) 261 (3 begemotBridgeTpPortTable 262 (1 begemotBridgeTpPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_tp_port 263 (1 begemotBridgeTpPort INTEGER GET) 264 (2 begemotBridgeTpPortMaxInfo INTEGER32 GET) 265 (3 begemotBridgeTpPortInFrames COUNTER GET) 266 (4 begemotBridgeTpPortOutFrames COUNTER GET) 267 (5 begemotBridgeTpPortInDiscards COUNTER GET) 268 )) 269 ) 270 (4 begemotBridgePf 271 (1 begemotBridgePfilStatus TruthValue op_begemot_bridge_pf GET SET) 272 (2 begemotBridgePfilMembers TruthValue op_begemot_bridge_pf GET SET) 273 (3 begemotBridgePfilIpOnly TruthValue op_begemot_bridge_pf GET SET) 274 (4 begemotBridgeLayer2PfStatus ENUM ( 1 enabled 2 disabled ) op_begemot_bridge_pf GET SET) 275 ) 276 (5 begemotBridgeConfigObjects 277 (1 begemotBridgeDefaultBridgeIf OCTETSTRING | BridgeIfNameOrEmpty op_begemot_bridge_config GET SET) 278 (2 begemotBridgeDataUpdate INTEGER op_begemot_bridge_config GET SET) 279 (3 begemotBridgeDataPoll INTEGER op_begemot_bridge_config GET SET) 280 ) 281 ))))) 282) 283