Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
4bb0ea52
Commit
4bb0ea52
authored
Nov 08, 2004
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't reboot ops-type nodes!
parent
037b78af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
utils/newnode.in
utils/newnode.in
+9
-3
No files found.
utils/newnode.in
View file @
4bb0ea52
...
...
@@ -120,7 +120,7 @@ my @node_ids = @ARGV;
#
# Now, loop through the nodes given, and add each one
#
my
(
@succeeded_nodes
,
@
succeeded
_IPs
);
my
(
@succeeded_nodes
,
@
reboot
_IPs
);
NODE:
foreach
my
$node_id
(
@node_ids
)
{
my
$query_result
;
...
...
@@ -400,7 +400,13 @@ NODE: foreach my $node_id (@node_ids) {
print
"
$node_id
succesfully added!
\n
";
push
@succeeded_nodes
,
$node_id
;
push
@succeeded_IPs
,
$tempIP
;
#
# Only reboot regular nodes, not ops nodes
#
if
(
$role
ne
"
ctrlnode
")
{
push
@reboot_IPs
,
$tempIP
;
}
}
#
...
...
@@ -450,7 +456,7 @@ if ($exports_rv) {
# Start rebooting nodes
#
print
"
Rebooting nodes...
\n
";
foreach
my
$IP
(
@
succeeded
_IPs
)
{
foreach
my
$IP
(
@
reboot
_IPs
)
{
print
"
Rebooting
$IP
\n
";
system
"
$newnode_reboot
$IP
\n
";
}
...
...
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