All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit b2337e45 authored by Mike Hibler's avatar Mike Hibler

debug and error checking

parent 7a5edca5
......@@ -621,7 +621,12 @@ sub enableTrunking($$@) {
}
push @vlan_numbers, $vlan_number;
}
$device->setVlansOnTrunk($port,1,@vlan_numbers);
print " add VLANs " . join(",",@vlan_numbers) . " to trunk\n"
if ($self->{DEBUG});
if (!$device->setVlansOnTrunk($port,1,@vlan_numbers)) {
warn "ERROR: could not add VLANs " .
join(",",@vlan_numbers) . " to trunk";
}
}
return $rv;
......
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