Have ipmi do wire format, to match ipmitool and microsoft behavior in spite of the spec (which no one follows, not even prior xCAT code)
This commit is contained in:
parent
14ac0776d0
commit
05f5636ebc
@ -5996,7 +5996,10 @@ sub gotguid {
|
||||
my $fru = FRU->new();
|
||||
$fru->rec_type("guid");
|
||||
$fru->desc("UUID/GUID");
|
||||
$fru->value(sprintf("%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X",@{$rsp->{data}}));
|
||||
my $binuuid = pack("C*",@{$rsp->{data}});
|
||||
my @pieces = unpack("VvvNNN",$binuuid);
|
||||
my @uuid = unpack("C*",pack("NnnNNN",@pieces));
|
||||
$fru->value(sprintf("%02X%02X%02X%02X-%02X%02X-%02X%02X-%02X%02X-%02X%02X%02X%02X%02X%02X",@uuid));
|
||||
$sessdata->{fru_hash}->{guid} = $fru;
|
||||
initfru_withguid($sessdata);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user