Commit 86d77f92 authored by Kirk Webb's avatar Kirk Webb
Browse files

Commit (again?) fix to snmpit_hp module.

Somehow this fix disappeared. No trace in the git log...
parent 156026f5
...@@ -1403,7 +1403,7 @@ sub listVlans($) { ...@@ -1403,7 +1403,7 @@ sub listVlans($) {
# #
# Walk the tree to find the VLAN names # Walk the tree to find the VLAN names
# #
my ($rows) = $self->{SESS}->bulkwalk(0,32,"dot1qVlanStaticName"); my ($rows) = $self->{SESS}->bulkwalk(0,32,["dot1qVlanStaticName"]);
foreach $rowref (@$rows) { foreach $rowref (@$rows) {
($oid, $vlan_number, $vlan_name) = @$rowref; ($oid, $vlan_number, $vlan_name) = @$rowref;
$self->debug("Got $oid $vlan_number $vlan_name\n",3); $self->debug("Got $oid $vlan_number $vlan_name\n",3);
...@@ -1424,7 +1424,7 @@ sub listVlans($) { ...@@ -1424,7 +1424,7 @@ sub listVlans($) {
# #
# Walk the tree for the VLAN members # Walk the tree for the VLAN members
# #
($rows) = $self->{SESS}->bulkwalk(0,32,"dot1qVlanStaticEgressPorts"); ($rows) = $self->{SESS}->bulkwalk(0,32,["dot1qVlanStaticEgressPorts"]);
foreach $rowref (@$rows) { foreach $rowref (@$rows) {
($oid,$vlan_number,$value) = @$rowref; ($oid,$vlan_number,$value) = @$rowref;
if ($vlan_number == 1) { next;} if ($vlan_number == 1) { next;}
...@@ -1707,7 +1707,7 @@ sub setVlansOnTrunk($$$$) { ...@@ -1707,7 +1707,7 @@ sub setVlansOnTrunk($$$$) {
# Walk the tree for the VLAN members. We do not really care # Walk the tree for the VLAN members. We do not really care
# what the vlans are, just the total number of vlans. # what the vlans are, just the total number of vlans.
# #
my ($rows) = $self->{SESS}->bulkwalk(0,32,"dot1qVlanStaticEgressPorts"); my ($rows) = $self->{SESS}->bulkwalk(0,32,["dot1qVlanStaticEgressPorts"]);
foreach my $rowref (@$rows) { foreach my $rowref (@$rows) {
my (undef,undef,$stuff) = @$rowref; my (undef,undef,$stuff) = @$rowref;
my @portlist = $self->portSetToList($stuff); my @portlist = $self->portSetToList($stuff);
......
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