Commit a5e752fb authored by Robert Ricci's avatar Robert Ricci
Browse files

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

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($$;$) {
......@@ -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
Supports Markdown
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