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
879fc245
Commit
879fc245
authored
May 30, 2018
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add TypesInUse() for experiments.
parent
75545174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
db/Experiment.pm.in
db/Experiment.pm.in
+18
-0
No files found.
db/Experiment.pm.in
View file @
879fc245
...
...
@@ -5155,6 +5155,24 @@ sub HasPhysNodes($)
return $query_result->num_rows;
}
sub TypesInUse($)
{
my ($self) = @_;
my $idx = $self->idx();
my $query_result =
DBQueryFatal("SELECT DISTINCT(n.type) FROM " .
"reserved AS r, nodes AS n WHERE " .
"r.node_id=n.node_id AND " .
"r.exptidx='
$
idx
'");
my @types = ();
while( my($type) = $query_result->fetchrow_array() ) {
push( @types, $type );
}
return @types;
}
sub HasVirtInterfaces($)
{
my ($self) = @_;
...
...
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