Commit 7c200769 authored by Robert Ricci's avatar Robert Ricci
Browse files

Convert setPortVlan() to use snmpitSetWarn(), so that we'll get its

retries and better error reporting.
parent ced2dc96
...@@ -906,12 +906,9 @@ sub setPortVlan($$@) { ...@@ -906,12 +906,9 @@ sub setPortVlan($$@) {
# #
# Do the acutal SNMP command # Do the acutal SNMP command
# #
my $RetVal = $self->{SESS}->set([$PortVlanMemb,$port,$vlan_number, my $snmpvar = [$PortVlanMemb,$port,$vlan_number,'INTEGER'];
'INTEGER']); my $retval = snmpitSetWarn($self->{SESS},$snmpvar);
if (!$RetVal) { if (!$retval) {
my $RetValString = defined($RetVal) ? $RetVal : "(undefined)";
print STDERR "ERROR - Failed to put $port on $self->{NAME} into " .
"VLAN $vlan_number - Error was $RetValString\n";
$errors++; $errors++;
next; next;
} else { } else {
......
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