2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-31 16:49:11 +00:00

Remove nodetype and hwtype from bmcdiscover -z output

This commit is contained in:
Casandra Qiu
2016-10-18 13:03:27 -04:00
parent 84ef53ab3e
commit d5022f8966
2 changed files with 1 additions and 7 deletions

View File

@@ -69,8 +69,6 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi
mgt=ipmi
mtm=8247-22L
serial=10112CA
nodetype=mp
hwtype=bmc
#. Edit the ``predefined.stanzas`` file and change the discovered nodes to the intended ``hostname`` and ``IP address``.
@@ -87,7 +85,7 @@ The BMC IP address is obtained by the open range dhcp server and the plan in thi
ip=10.1.2.1
#. Remove ``nodetype`` and ``hwtype`` from ``predefined.stanza`` file based on the MTMS mapping.
#. Remove ``nodetype`` and ``hwtype`` if defined in the ``predefined.stanza``.
#. Repeat for additional nodes in the ``predefined.stanza`` file based on the MTMS mapping.

View File

@@ -645,10 +645,6 @@ sub format_stanza {
if ($bmcpass) {
$result .= "\tbmcpassword=$bmcpass\n";
}
if ($nodetype && $hwtype) {
$result .= "\tnodetype=$nodetype\n";
$result .= "\thwtype=$hwtype\n";
}
my $rsp = {};
push @{ $rsp->{data} }, "$result";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);