check the format of mac address in the xcat2nim command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
837c6ec620
commit
534222d1b0
@ -855,9 +855,11 @@ sub mkclientdef
|
||||
if (!$::objhash{$node}{'mac'})
|
||||
{
|
||||
my $rsp;
|
||||
$rsp->{data}->[0] = "$::msgstr Missing the MAC for node \'$node\'.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $::callback);
|
||||
return 1;
|
||||
$rsp->{data}->[0] = "$::msgstr Missing the MAC for node \'$node\'.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $::callback);
|
||||
return 1;
|
||||
} else {
|
||||
$::objhash{$node}{'mac'} =~ s/://g;
|
||||
}
|
||||
|
||||
$ifattr="-a if1=\'$net_name $shorthost $::objhash{$node}{'mac'} $adaptertype\'";
|
||||
|
Loading…
Reference in New Issue
Block a user