Commit c9c70961 authored by Jonathon Duerig's avatar Jonathon Duerig

Add IP address to ILO interfaces when generating newscript config files.

parent ea50699e
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment