Commit 23c5d078 authored by Kirk Webb's avatar Kirk Webb

snmpit_force10.pm:setChannelVlan(): Make error message follow context.

This will help with debugging.
parent 19edc227
......@@ -1959,7 +1959,9 @@ sub setChannelVlan($$$;$) {
my $vlifname = "vlan$vlanid";
my ($res, $out) = $self->{EXP_OBJ}->doCLICmd($cmd, $isconfig, $vlifname);
if ($res) {
warn "$id: Error adding vlan to channel: $out\n";
my $msg = $remove ? "Error removing vlan $vlanid from channel $poname" :
"Error adding vlan $vlanid to channel $poname";
warn "$id: $msg: $out\n";
}
return $res;
}
......
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