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:
parent
bcc4885a7f
commit
c045bdb945
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user