Commit 30975e70 authored by Robert Ricci's avatar Robert Ricci
Browse files

Change snmpit -O behavior

It's no longer necessary to specify '-l -l' when listing orphaned
VLANs, -O implies wanting to see VLANs that aren't in the database.
parent 16927c97
...@@ -1142,8 +1142,9 @@ $vlan_id,$ddep, $pideid, $vname, $members ...@@ -1142,8 +1142,9 @@ $vlan_id,$ddep, $pideid, $vname, $members
my $vlan = VLan->Lookup($vlan_id); my $vlan = VLan->Lookup($vlan_id);
if (!defined($vlan)) { if (!defined($vlan)) {
&debug("No such VLAN $vlan_id in lans table\n"); &debug("No such VLAN $vlan_id in lans table\n");
next # Only print unknown VLANs if -l was given twice, or the
if ($opt{l} == 1); # -O option was given
next unless ($opt{l} > 1 || $opt{O});
$vname = $vlan_id; $vname = $vlan_id;
$experiment = undef; $experiment = undef;
} }
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