Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
73f9ddd7
Commit
73f9ddd7
authored
Jan 30, 2012
by
Leigh B Stoller
Browse files
Add MarkNodesForUpdate() method; forces account update on all nodes in
an experiment.
parent
6938f942
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Experiment.pm.in
View file @
73f9ddd7
...
...
@@ -4995,5 +4995,25 @@ sub GetVirtNodeAttribute($$$$)
return 0;
}
#
# Mark all nodes for (account) update.
#
sub MarkNodesForUpdate($)
{
my ($self) = @_;
my @nodelist = $self->NodeList(0, 1);
return 0
if (! @nodelist);
foreach my $node (@nodelist) {
next
if ($node->erole() eq TBDB_RSRVROLE_NODE());
$node->MarkForUpdate();
}
return 0;
}
# _Always_ make sure that this 1 is at the end of the file...
1;
Write
Preview
Supports
Markdown
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