support for multiple mac addresses for composing nodeid for RMC, defect 3410319

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10556 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2011-09-19 20:32:24 +00:00
parent a824514ce8
commit 521e2c7bbb

View File

@ -890,7 +890,9 @@ sub getNodeID {
my $tmp=$tab->getNodeAttribs($node, ['mac']);
if (defined($tmp) && ($tmp)) {
my $mac=$tmp->{mac};
$mac =~ s/://g;
$mac =~ s/\|.*//g; #use the first mac
$mac =~ s/\!.*//g; #remove the hostname
$mac =~ s/://g; #remove :
$mac = "EA" . $mac . "EA";
$tab->close();
return $mac;