Strip colons from mac address before sending to HMC - Line #211
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1614 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -11,6 +11,7 @@ use xCAT::Usage; | ||||
| # Parse the command line for options and operands  | ||||
| ########################################################################## | ||||
| sub parse_args { | ||||
|  | ||||
|     my $request = shift; | ||||
|     my %opt     = (); | ||||
|     my $cmd     = $request->{command}; | ||||
| @@ -204,6 +205,11 @@ sub rnetboot { | ||||
|         C => $o->{client}, | ||||
|         m => $o->{mac} | ||||
|     ); | ||||
|     ##################################### | ||||
|     # Strip colons from mac address  | ||||
|     ##################################### | ||||
|     $opt{m} =~ s/://g; | ||||
|  | ||||
|     ##################################### | ||||
|     # Force LPAR shutdown  | ||||
|     ##################################### | ||||
| @@ -336,3 +342,4 @@ sub rnetboot { | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user