Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
167aa3f4
Commit
167aa3f4
authored
Jul 31, 2012
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter out switches with the snmpit_disable node_attribute.
parent
26ca466b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tbsetup/snmpit_test/snmpit_lib.pm
tbsetup/snmpit_test/snmpit_lib.pm
+6
-1
No files found.
tbsetup/snmpit_test/snmpit_lib.pm
View file @
167aa3f4
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment