Commit a5e752fb authored by Robert Ricci's avatar Robert Ricci

Change the way we set VLANs very slightly. We used to use the vmVlan

OID from the CISCO-VLAN-MEMBERSHIP MIB. But, this MIB does not seem
to be supported by all Cisco switches. So, we now use vlanPortVlan
from the CISCO-STACK MIB.

So, we no longer need CISCO-VLAN-MEMBERSHIP-MIB at all, which should make
snmpit usable on a wider variety of Ciscos.
parent dae40834
......@@ -90,7 +90,6 @@ sub new($$;$) {
&SNMP::addMibDirs($mibpath);
&SNMP::addMibFiles("$mibpath/CISCO-STACK-MIB.txt",
"$mibpath/CISCO-VTP-MIB.txt",
"$mibpath/CISCO-VLAN-MEMBERSHIP-MIB.txt",
"$mibpath/CISCO-PAGP-MIB.txt",
"$mibpath/RMON-MIB.txt");
......@@ -529,7 +528,7 @@ sub setPortVlan($$@) {
my $vlan_id = shift;
my @ports = @_;
my $PortVlanMemb = "vmVlan"; #index is ifIndex
my $PortVlanMemb = "vlanPortVlan"; #index is ifIndex
my $errors = 0;
......@@ -546,7 +545,7 @@ sub setPortVlan($$@) {
#
# Convert ports from the format the were passed in to IfIndex format
#
my @portlist = $self->convertPortFormat($PORT_FORMAT_IFINDEX,@ports);
my @portlist = $self->convertPortFormat($PORT_FORMAT_MODPORT,@ports);
#
# We'll keep track of which ports suceeded, so that we don't try to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment