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($$@) {
#
# Do the acutal SNMP command
#
my $RetVal = $self->{SESS}->set([$PortVlanMemb,$port,$vlan_number,
'INTEGER']);
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";
my $snmpvar = [$PortVlanMemb,$port,$vlan_number,'INTEGER'];
my $retval = snmpitSetWarn($self->{SESS},$snmpvar);
if (!$retval) {
$errors++;
next;
} 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