1164410Ssyrinx#- 2164410Ssyrinx# Copyright (c) 2006 Shteryana Shopova <syrinx@FreeBSD.org> 3164410Ssyrinx# All rights reserved. 4164410Ssyrinx# 5164410Ssyrinx# Redistribution and use in source and binary forms, with or without 6164410Ssyrinx# modification, are permitted provided that the following conditions 7164410Ssyrinx# are met: 8164410Ssyrinx# 1. Redistributions of source code must retain the above copyright 9164410Ssyrinx# notice, this list of conditions and the following disclaimer. 10164410Ssyrinx# 2. Redistributions in binary form must reproduce the above copyright 11164410Ssyrinx# notice, this list of conditions and the following disclaimer in the 12164410Ssyrinx# documentation and/or other materials provided with the distribution. 13164410Ssyrinx# 14164410Ssyrinx# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15164410Ssyrinx# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16164410Ssyrinx# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17164410Ssyrinx# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18164410Ssyrinx# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19164410Ssyrinx# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20164410Ssyrinx# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21164410Ssyrinx# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22164410Ssyrinx# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23164410Ssyrinx# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24164410Ssyrinx# SUCH DAMAGE. 25164410Ssyrinx# 26164410Ssyrinx# $FreeBSD: releng/10.3/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_tree.def 216605 2010-12-20 22:56:50Z syrinx $ 27164410Ssyrinx# 28164410Ssyrinx 29216605Ssyrinx#include "tc.def" 30164410Ssyrinx 31216605Ssyrinxtypedef RowStatus ENUM ( 32216605Ssyrinx 1 active 33216605Ssyrinx 2 notInService 34216605Ssyrinx 3 notReady 35216605Ssyrinx 4 createAndGo 36216605Ssyrinx 5 createAndWait 37216605Ssyrinx 6 destroy 38216605Ssyrinx) 39216605Ssyrinx 40164410Ssyrinxtypedef TruthValue ENUM ( 41164410Ssyrinx 1 true 42164410Ssyrinx 2 false 43164410Ssyrinx) 44164410Ssyrinx 45164410Ssyrinxtypedef StpPortState ENUM ( 46164410Ssyrinx 1 disabled 47164410Ssyrinx 2 blocking 48164410Ssyrinx 3 listening 49164410Ssyrinx 4 learning 50164410Ssyrinx 5 forwarding 51164410Ssyrinx 6 broken 52164410Ssyrinx) 53164410Ssyrinx 54164997Ssyrinxtypedef StpPortAdminPointToPointType ENUM ( 55164997Ssyrinx 0 forceTrue 56164997Ssyrinx 1 forceFalse 57164997Ssyrinx 2 auto 58164997Ssyrinx) 59164997Ssyrinx 60164410Ssyrinxtypedef BaseType ENUM ( 61164410Ssyrinx 1 unknown 62164410Ssyrinx 2 transparent-only 63164410Ssyrinx 3 sourceroute-only 64164410Ssyrinx 4 srt 65164410Ssyrinx) 66164410Ssyrinx 67164410Ssyrinxtypedef TpFdbStatus ENUM ( 68164410Ssyrinx 1 other 69164410Ssyrinx 2 invalid 70164410Ssyrinx 3 learned 71164410Ssyrinx 4 self 72164410Ssyrinx 5 mgmt 73164410Ssyrinx) 74164410Ssyrinx 75164410Ssyrinx(1 internet 76164410Ssyrinx (2 mgmt 77164410Ssyrinx (1 mib_2 78164410Ssyrinx (17 dot1dBridge 79164410Ssyrinx (0 dot1dNotifications 80164410Ssyrinx (1 newRoot OID op_snmp_trap) 81164410Ssyrinx (2 topologyChange OID op_snmp_trap) 82164410Ssyrinx ) 83164410Ssyrinx (1 dot1dBase 84164410Ssyrinx (1 dot1dBaseBridgeAddress OCTETSTRING | MacAddress op_dot1d_base GET) 85164410Ssyrinx (2 dot1dBaseNumPorts INTEGER32 op_dot1d_base GET) 86164410Ssyrinx (3 dot1dBaseType BaseType op_dot1d_base GET) 87164410Ssyrinx (4 dot1dBasePortTable 88164410Ssyrinx (1 dot1dBasePortEntry : INTEGER op_dot1d_base_port 89164410Ssyrinx (1 dot1dBasePort INTEGER GET) 90164410Ssyrinx (2 dot1dBasePortIfIndex INTEGER GET) 91164410Ssyrinx (3 dot1dBasePortCircuit OID GET) 92164410Ssyrinx (4 dot1dBasePortDelayExceededDiscards COUNTER GET) 93164410Ssyrinx (5 dot1dBasePortMtuExceededDiscards COUNTER GET) 94164410Ssyrinx )) 95164410Ssyrinx ) 96164410Ssyrinx (2 dot1dStp 97164410Ssyrinx (1 dot1dStpProtocolSpecification ENUM ( 1 unknown 2 decLb100 3 ieee8021d ) op_dot1d_stp GET) 98164410Ssyrinx (2 dot1dStpPriority INTEGER op_dot1d_stp GET SET) 99164410Ssyrinx (3 dot1dStpTimeSinceTopologyChange TIMETICKS op_dot1d_stp GET) 100164410Ssyrinx (4 dot1dStpTopChanges COUNTER op_dot1d_stp GET) 101164410Ssyrinx (5 dot1dStpDesignatedRoot OCTETSTRING | BridgeId op_dot1d_stp GET) 102164410Ssyrinx (6 dot1dStpRootCost INTEGER32 op_dot1d_stp GET) 103164410Ssyrinx (7 dot1dStpRootPort INTEGER32 op_dot1d_stp GET) 104164410Ssyrinx (8 dot1dStpMaxAge INTEGER op_dot1d_stp GET) 105164410Ssyrinx (9 dot1dStpHelloTime INTEGER op_dot1d_stp GET) 106164410Ssyrinx (10 dot1dStpHoldTime INTEGER32 op_dot1d_stp GET) 107164410Ssyrinx (11 dot1dStpForwardDelay INTEGER op_dot1d_stp GET) 108164410Ssyrinx (12 dot1dStpBridgeMaxAge INTEGER op_dot1d_stp GET SET) 109164410Ssyrinx (13 dot1dStpBridgeHelloTime INTEGER op_dot1d_stp GET SET) 110164410Ssyrinx (14 dot1dStpBridgeForwardDelay INTEGER op_dot1d_stp GET SET) 111164410Ssyrinx (15 dot1dStpPortTable 112164410Ssyrinx (1 dot1dStpPortEntry : INTEGER op_dot1d_stp_port 113164410Ssyrinx (1 dot1dStpPort INTEGER GET) 114164410Ssyrinx (2 dot1dStpPortPriority INTEGER GET SET) 115164410Ssyrinx (3 dot1dStpPortState StpPortState GET) 116164410Ssyrinx (4 dot1dStpPortEnable ENUM ( 1 enabled 2 disabled ) GET SET) 117164410Ssyrinx (5 dot1dStpPortPathCost INTEGER GET SET) 118164410Ssyrinx (6 dot1dStpPortDesignatedRoot OCTETSTRING | BridgeId GET) 119164410Ssyrinx (7 dot1dStpPortDesignatedCost INTEGER32 GET) 120164410Ssyrinx (8 dot1dStpPortDesignatedBridge OCTETSTRING | BridgeId GET) 121164410Ssyrinx (9 dot1dStpPortDesignatedPort OCTETSTRING | BridgePortId GET) 122164410Ssyrinx (10 dot1dStpPortForwardTransitions COUNTER GET) 123164410Ssyrinx )) 124164997Ssyrinx (16 dot1dStpVersion ENUM ( 0 stpCompatible 2 rstp ) op_dot1d_stp GET SET) 125164997Ssyrinx (17 dot1dStpTxHoldCount INTEGER op_dot1d_stp GET SET) 126164997Ssyrinx (19 dot1dStpExtPortTable 127164997Ssyrinx (1 dot1dStpExtPortEntry : INTEGER op_dot1d_stp_ext_port 128164997Ssyrinx (1 dot1dStpPortProtocolMigration TruthValue GET) # SET 129164997Ssyrinx (2 dot1dStpPortAdminEdgePort TruthValue GET SET) 130164997Ssyrinx (3 dot1dStpPortOperEdgePort TruthValue GET) 131164997Ssyrinx (4 dot1dStpPortAdminPointToPoint StpPortAdminPointToPointType GET SET) 132164997Ssyrinx (5 dot1dStpPortOperPointToPoint TruthValue GET) 133164997Ssyrinx (6 dot1dStpPortAdminPathCost INTEGER GET SET) 134164997Ssyrinx )) 135164410Ssyrinx ) 136164410Ssyrinx (3 dot1dSr 137164410Ssyrinx ) 138164410Ssyrinx (4 dot1dTp 139164410Ssyrinx (1 dot1dTpLearnedEntryDiscards COUNTER op_dot1d_tp GET) 140164410Ssyrinx (2 dot1dTpAgingTime INTEGER op_dot1d_tp GET SET) 141164410Ssyrinx (3 dot1dTpFdbTable 142164410Ssyrinx (1 dot1dTpFdbEntry : OCTETSTRING | MacAddress op_dot1d_tp_fdb 143164410Ssyrinx (1 dot1dTpFdbAddress OCTETSTRING | MacAddress GET) 144164410Ssyrinx (2 dot1dTpFdbPort INTEGER32 GET) 145164410Ssyrinx (3 dot1dTpFdbStatus TpFdbStatus GET) 146164410Ssyrinx )) 147164410Ssyrinx (4 dot1dTpPortTable 148164410Ssyrinx (1 dot1dTpPortEntry : INTEGER op_dot1d_tp_port 149164410Ssyrinx (1 dot1dTpPort INTEGER GET) 150164410Ssyrinx (2 dot1dTpPortMaxInfo INTEGER32 GET) 151164410Ssyrinx (3 dot1dTpPortInFrames COUNTER GET) 152164410Ssyrinx (4 dot1dTpPortOutFrames COUNTER GET) 153164410Ssyrinx (5 dot1dTpPortInDiscards COUNTER GET) 154164410Ssyrinx )) 155164410Ssyrinx ) 156164410Ssyrinx (5 dot1dStatic 157164410Ssyrinx ) 158164410Ssyrinx (8 dot1dConformance 159164410Ssyrinx (1 dot1dGroups 160164410Ssyrinx ) 161164410Ssyrinx (2 dot1dCompliances 162164410Ssyrinx ) 163164410Ssyrinx ) 164164997Ssyrinx ) 165164997Ssyrinx (134 rstpMIB 166164997Ssyrinx (0 rstpNotifications 167164997Ssyrinx ) 168164997Ssyrinx (1 rstpObjects 169164997Ssyrinx ) 170164997Ssyrinx (2 rstpConformance 171164997Ssyrinx (1 rstpGroups 172164997Ssyrinx ) 173164997Ssyrinx (2 rstpCompliances 174164997Ssyrinx ) 175164997Ssyrinx ) 176164410Ssyrinx ))) 177164410Ssyrinx (4 private 178164410Ssyrinx (1 enterprises 179164410Ssyrinx (12325 fokus 180164410Ssyrinx (1 begemot 181164410Ssyrinx (205 begemotBridge 182164410Ssyrinx (0 begemotBridgeNotifications 183164410Ssyrinx (1 begemotBridgeNewRoot OID op_snmp_trap) 184164410Ssyrinx (2 begemotBridgeTopologyChange OID op_snmp_trap) 185164410Ssyrinx ) 186164410Ssyrinx (1 begemotBridgeBase 187164410Ssyrinx (1 begemotBridgeBaseTable 188164410Ssyrinx (1 begemotBridgeBaseEntry : OCTETSTRING | BridgeIfName op_begemot_base_bridge 189164410Ssyrinx (1 begemotBridgeBaseName OCTETSTRING | BridgeIfName GET) 190164410Ssyrinx (2 begemotBridgeBaseAddress OCTETSTRING | MacAddress GET) 191164410Ssyrinx (3 begemotBridgeBaseNumPorts INTEGER32 GET) 192164410Ssyrinx (4 begemotBridgeBaseType BaseType GET) 193164410Ssyrinx (5 begemotBridgeBaseStatus RowStatus GET SET) 194164410Ssyrinx )) 195164410Ssyrinx (2 begemotBridgeBasePortTable 196164410Ssyrinx (1 begemotBridgeBasePortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_base_port 197164410Ssyrinx (1 begemotBridgeBasePort INTEGER GET) 198164410Ssyrinx (2 begemotBridgeBasePortIfIndex INTEGER GET) 199164410Ssyrinx (3 begemotBridgeBaseSpanEnabled ENUM ( 1 enabled 2 disabled ) GET SET) 200164410Ssyrinx (4 begemotBridgeBasePortDelayExceededDiscards COUNTER GET) 201164410Ssyrinx (5 begemotBridgeBasePortMtuExceededDiscards COUNTER GET) 202164410Ssyrinx (6 begemotBridgeBasePortStatus RowStatus GET SET) 203171791Ssyrinx (7 begemotBridgeBasePortPrivate TruthValue GET SET) 204164410Ssyrinx )) 205164410Ssyrinx ) 206164410Ssyrinx (2 begemotBridgeStp 207164410Ssyrinx (1 begemotBridgeStpTable 208164410Ssyrinx (1 begemotBridgeStpEntry : OCTETSTRING | BridgeIfName op_begemot_stp 209164410Ssyrinx (1 begemotBridgeStpProtocolSpecification ENUM ( 1 unknown 2 decLb100 3 ieee8021d ) GET) 210164410Ssyrinx (2 begemotBridgeStpPriority INTEGER GET SET) 211164410Ssyrinx (3 begemotBridgeStpTimeSinceTopologyChange TIMETICKS GET) 212164410Ssyrinx (4 begemotBridgeStpTopChanges COUNTER GET) 213164410Ssyrinx (5 begemotBridgeStpDesignatedRoot OCTETSTRING | BridgeId GET) 214164410Ssyrinx (6 begemotBridgeStpRootCost INTEGER32 GET) 215164410Ssyrinx (7 begemotBridgeStpRootPort INTEGER32 GET) 216164410Ssyrinx (8 begemotBridgeStpMaxAge INTEGER GET) 217164410Ssyrinx (9 begemotBridgeStpHelloTime INTEGER GET) 218164410Ssyrinx (10 begemotBridgeStpHoldTime INTEGER32 GET) 219164410Ssyrinx (11 begemotBridgeStpForwardDelay INTEGER GET) 220164410Ssyrinx (12 begemotBridgeStpBridgeMaxAge INTEGER GET SET) 221164410Ssyrinx (13 begemotBridgeStpBridgeHelloTime INTEGER GET SET) 222164410Ssyrinx (14 begemotBridgeStpBridgeForwardDelay INTEGER GET SET) 223164997Ssyrinx (15 begemotBridgeStpVersion ENUM ( 0 stpCompatible 2 rstp ) GET SET) 224164997Ssyrinx (16 begemotBridgeStpTxHoldCount INTEGER GET SET) 225164410Ssyrinx )) 226164410Ssyrinx (2 begemotBridgeStpPortTable 227164410Ssyrinx (1 begemotBridgeStpPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_stp_port 228164410Ssyrinx (1 begemotBridgeStpPort INTEGER GET) 229164410Ssyrinx (2 begemotBridgeStpPortPriority INTEGER GET SET) 230164410Ssyrinx (3 begemotBridgeStpPortState StpPortState GET) 231164410Ssyrinx (4 begemotBridgeStpPortEnable ENUM ( 1 enabled 2 disabled ) GET SET) 232164410Ssyrinx (5 begemotBridgeStpPortPathCost INTEGER GET SET) 233164410Ssyrinx (6 begemotBridgeStpPortDesignatedRoot OCTETSTRING | BridgeId GET) 234164410Ssyrinx (7 begemotBridgeStpPortDesignatedCost INTEGER32 GET) 235164410Ssyrinx (8 begemotBridgeStpPortDesignatedBridge OCTETSTRING | BridgeId GET) 236164410Ssyrinx (9 begemotBridgeStpPortDesignatedPort OCTETSTRING | BridgePortId GET) 237164410Ssyrinx (10 begemotBridgeStpPortForwardTransitions COUNTER GET) 238164410Ssyrinx )) 239164997Ssyrinx (3 begemotBridgeStpExtPortTable 240164997Ssyrinx (1 begemotBridgeStpExtPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_stp_ext_port 241164997Ssyrinx (1 begemotBridgeStpPortProtocolMigration TruthValue GET) # SET 242164997Ssyrinx (2 begemotBridgeStpPortAdminEdgePort TruthValue GET SET) 243164997Ssyrinx (3 begemotBridgeStpPortOperEdgePort TruthValue GET) 244164997Ssyrinx (4 begemotBridgeStpPortAdminPointToPoint StpPortAdminPointToPointType GET SET) 245164997Ssyrinx (5 begemotBridgeStpPortOperPointToPoint TruthValue GET) 246164997Ssyrinx (6 begemotBridgeStpPortAdminPathCost INTEGER GET SET) 247164997Ssyrinx )) 248164410Ssyrinx ) 249164410Ssyrinx (3 begemotBridgeTp 250164410Ssyrinx (1 begemotBridgeTpTable 251164410Ssyrinx (1 begemotBridgeTpEntry : OCTETSTRING | BridgeIfName op_begemot_tp 252164410Ssyrinx (1 begemotBridgeTpLearnedEntryDiscards COUNTER GET) 253164410Ssyrinx (2 begemotBridgeTpAgingTime INTEGER GET SET) 254164410Ssyrinx (3 begemotBridgeTpMaxAddresses INTEGER GET SET) 255164410Ssyrinx )) 256164410Ssyrinx (2 begemotBridgeTpFdbTable 257164410Ssyrinx (1 begemotBridgeTpFdbEntry : OCTETSTRING | BridgeIfName OCTETSTRING | MacAddress op_begemot_tp_fdb 258164410Ssyrinx (1 begemotBridgeTpFdbAddress OCTETSTRING | MacAddress GET) 259164410Ssyrinx (2 begemotBridgeTpFdbPort INTEGER32 GET) 260164410Ssyrinx (3 begemotBridgeTpFdbStatus TpFdbStatus GET) 261164410Ssyrinx )) 262164410Ssyrinx (3 begemotBridgeTpPortTable 263164410Ssyrinx (1 begemotBridgeTpPortEntry : OCTETSTRING | BridgeIfName INTEGER op_begemot_tp_port 264164410Ssyrinx (1 begemotBridgeTpPort INTEGER GET) 265164410Ssyrinx (2 begemotBridgeTpPortMaxInfo INTEGER32 GET) 266164410Ssyrinx (3 begemotBridgeTpPortInFrames COUNTER GET) 267164410Ssyrinx (4 begemotBridgeTpPortOutFrames COUNTER GET) 268164410Ssyrinx (5 begemotBridgeTpPortInDiscards COUNTER GET) 269164410Ssyrinx )) 270164410Ssyrinx ) 271164410Ssyrinx (4 begemotBridgePf 272164410Ssyrinx (1 begemotBridgePfilStatus TruthValue op_begemot_bridge_pf GET SET) 273164410Ssyrinx (2 begemotBridgePfilMembers TruthValue op_begemot_bridge_pf GET SET) 274164410Ssyrinx (3 begemotBridgePfilIpOnly TruthValue op_begemot_bridge_pf GET SET) 275164410Ssyrinx (4 begemotBridgeLayer2PfStatus ENUM ( 1 enabled 2 disabled ) op_begemot_bridge_pf GET SET) 276164410Ssyrinx ) 277164410Ssyrinx (5 begemotBridgeConfigObjects 278164410Ssyrinx (1 begemotBridgeDefaultBridgeIf OCTETSTRING | BridgeIfNameOrEmpty op_begemot_bridge_config GET SET) 279164410Ssyrinx (2 begemotBridgeDataUpdate INTEGER op_begemot_bridge_config GET SET) 280164410Ssyrinx (3 begemotBridgeDataPoll INTEGER op_begemot_bridge_config GET SET) 281164410Ssyrinx ) 282164410Ssyrinx ))))) 283164410Ssyrinx) 284