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:
		| @@ -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;   | ||||
|   | ||||
		Reference in New Issue
	
	Block a user