mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	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:
		| @@ -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\'"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user