Format the mac address to Linux mode before using on Linux OS

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5655 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-04-02 11:09:24 +00:00
parent bcc4885a7f
commit c045bdb945

View File

@ -269,6 +269,12 @@ sub addnode
}
else
{
if ( !grep /:/,$mac ) {
$mac = lc($mac);
$mac =~ s/(\w{2})/$1:/g;
$mac =~ s/:$//;
}
#syslog("local4|err", "Setting $node ($hname|$ip) to " . $mac);
print $omshell "new host\n";
print $omshell