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 2d04d705 authored by Robert Ricci's avatar Robert Ricci

Added a check to skip VLANs that appear to have no members - this was

causing it to try to delete VLAN 1 (which, thank goodness, fails: it
would be a Very Bad Thing (TM) if it suceeded), and
community/isolated private VLANs.
parent 4c646de6
......@@ -30,6 +30,9 @@ while (<SNMPIT>) {
$id = $line[0];
if (! ($id =~ /[0-9]+/)) {next;}
if ($id == 1) {next;}
# Skip VLANs with no members, which tries to delete VLAN 1,
# as well as private VLANs
if (@line < 2) {next;}
$remove = 1;
foreach $member (@line[2..$#line]) {
@elements = split(":",$member);
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