Commit 167aa3f4 authored by Jonathon Duerig's avatar Jonathon Duerig

Filter out switches with the snmpit_disable node_attribute.

parent 26ca466b
......@@ -806,7 +806,12 @@ sub getTestSwitches () {
DBQueryFatal("SELECT node_id FROM nodes WHERE role='testswitch'");
my @switches = ();
while (my @row = $result->fetchrow()) {
push @switches, $row[0];
my $node = Node->Lookup($row[0]);
my $disabled;
$node->NodeAttribute("snmpit_disable", \$disabled);
if (! defined($disabled) || !$disabled) {
push @switches, $row[0];
}
}
return @switches;
......
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