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
c9c70961
Commit
c9c70961
authored
Dec 06, 2012
by
Jonathon Duerig
Browse files
Add IP address to ILO interfaces when generating newscript config files.
parent
ea50699e
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/genirack/mknewconfig.pl
View file @
c9c70961
...
...
@@ -135,6 +135,10 @@ foreach my $current (@wires) {
print
IF_FILE
"
<attribute name='mac'><value>
$mac
</value></attribute>
\n
";
print
IF_FILE
"
<attribute name='type'><value>
$type
</value></attribute>
\n
";
print
IF_FILE
"
<attribute name='role'><value>
$role
</value></attribute>
\n
";
if
(
$role
eq
"
mngmnt
"
&&
exists
(
$ilo_ips
{
$node_id
}))
{
my
$IP
=
$ilo_ips
{
$node_id
};
print
IF_FILE
"
<attribute name='IP'><value>
$IP
</value></attribute>
\n
";
}
print
IF_FILE
"
</newinterface>
\n
";
close
(
IF_FILE
);
}
...
...
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