mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	Fix various issues with the mac address fixup in clonevm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9448 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -2169,9 +2169,9 @@ sub clone_task_callback { | ||||
| 	$vpdtab->setAttribs({node=>$node},{uuid=>$nodeviews->[0]->config->uuid}); | ||||
| 	my $ndev; | ||||
| 	my @devstochange; | ||||
| 	foreach $ndev ($nodeviews->[0]->config->hardware->device) { | ||||
| 	  unless ($ndev->macAddress) { next; } #not an ndev | ||||
| 	  $ndev->macAddress=shift @macs; | ||||
| 	foreach $ndev (@{$nodeviews->[0]->config->hardware->device}) { | ||||
| 	  unless ($ndev->{macAddress}) { next; } #not an ndev | ||||
| 	  $ndev->{macAddress}=shift @macs; | ||||
| 	  push @devstochange, VirtualDeviceConfigSpec->new( | ||||
| 						device => $ndev, | ||||
| 						operation =>  VirtualDeviceConfigSpecOperation->new('edit')); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user