From ac9efcf8baed5fa2fe4283cd56e93523874cf67e Mon Sep 17 00:00:00 2001 From: Max Baker <> Date: Tue, 2 Mar 2004 04:57:04 +0000 Subject: [PATCH] added q-bridge mib stuff --- Info/Bridge.pm | 57 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/Info/Bridge.pm b/Info/Bridge.pm index 2b344f5e..211a0882 100644 --- a/Info/Bridge.pm +++ b/Info/Bridge.pm @@ -54,13 +54,16 @@ $INIT = 0; ); %GLOBALS = ( - 'b_mac' => 'dot1dBaseBridgeAddress', - 'b_ports' => 'dot1dBaseNumPorts', - 'b_type' => 'dot1dBaseType', + 'b_mac' => 'dot1dBaseBridgeAddress', + 'b_ports' => 'dot1dBaseNumPorts', + 'b_type' => 'dot1dBaseType', # Spanning Tree Protocol - 'stp_ver' => 'dot1dStpProtocolSpecification', + 'stp_ver' => 'dot1dStpProtocolSpecification', 'stp_time' => 'dot1dStpTimeSinceTopologyChange', 'stp_root' => 'dot1dStpDesignatedRoot', + # Q-BRIDGE-MIB + 'qb_vlans_max' => 'dot1qMaxSupportedVlans', + 'qb_vlans' => 'dot1qNumVlans', ); %FUNCS = ( @@ -85,7 +88,10 @@ $INIT = 0; 'stp_p_bridge' => 'dot1dStpPortDesignatedBridge', 'stp_p_port' => 'dot1dStpPortDesignatedPort', # Q-BRIDGE-MIB : - 'qb_v_if' => 'dot1qPvid', + 'qb_i_vlan' => 'dot1qPvid', + 'qb_i_vlan_type' => 'dot1qPortAcceptableFrameTypes', + 'qb_v_name' => 'dot1qVlanStaticName', + 'qb_v_stat' => 'dot1qVlanStaticRowStatus', ); %MUNGE = ( @@ -233,6 +239,16 @@ Returns root of STP. (B) +=item $bridge->qb_vlans_max() + +(B) + +=item $bridge->qb_vlans() + +Number of VLANS on this device. + +(B) + =back =head1 TABLE METHODS @@ -349,4 +365,35 @@ this port's segment." =back +=head2 Q-BRIDGE Data + +=over + +=item $bridge->qb_i_vlan() + +Gives the vlan used by interfaces + +(B) + +=item $bridge->qb_i_vlan_type() + +Either C or C. This is a good spot to find +trunk ports. + +(B) + +=item $bridge->qb_v_name() + +Human-entered name for vlans. + +(B) + +=item $bridge->qb_v_stat() + +uhh. C ! + +(B) + +=back + =cut