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:
daniceexi 2009-03-27 15:45:35 +00:00
parent 837c6ec620
commit 534222d1b0

View File

@ -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\'";