-Clear mac addresses when creating a master
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7295 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -1463,6 +1463,9 @@ sub clonevm {
 | 
			
		||||
 | 
			
		||||
        $tmpnod = $parsedxml->findnodes('/domain/name/text()')->[0];
 | 
			
		||||
        $tmpnod->setData($mastername); #name the xml whatever the master name is to be
 | 
			
		||||
        foreach ($parsedxml->findnodes("/domain/devices/interface/mac")) { #clear all mac addresses 
 | 
			
		||||
            if ($_->hasAttribute("address")) { $_->setAttribute("address"=>''); }
 | 
			
		||||
        }
 | 
			
		||||
        my $poolobj = get_storage_pool_by_url($directory);
 | 
			
		||||
        unless ($poolobj) {
 | 
			
		||||
            xCAT::SvrUtils::sendmsg([1,"Unable to reach $directory from hypervisor"], $callback,$node);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user