mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Once again allow a VM to be on multiple networks from VPCs (#3754)
to once again allow a VM to be on multiple networks from VPCs
This commit is contained in:
		
							parent
							
								
									5afff61e6f
								
							
						
					
					
						commit
						0b34971b6d
					
				@ -3613,7 +3613,6 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
 | 
			
		||||
 | 
			
		||||
        short defaultNetworkNumber = 0;
 | 
			
		||||
        boolean securityGroupEnabled = false;
 | 
			
		||||
        boolean vpcNetwork = false;
 | 
			
		||||
        for (NetworkVO network : networkList) {
 | 
			
		||||
            if ((network.getDataCenterId() != zone.getId())) {
 | 
			
		||||
                if (!network.isStrechedL2Network()) {
 | 
			
		||||
@ -3684,14 +3683,6 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir
 | 
			
		||||
                securityGroupEnabled = true;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // vm can't be a part of more than 1 VPC network
 | 
			
		||||
            if (network.getVpcId() != null) {
 | 
			
		||||
                if (vpcNetwork) {
 | 
			
		||||
                    throw new InvalidParameterValueException("Vm can't be a part of more than 1 VPC network");
 | 
			
		||||
                }
 | 
			
		||||
                vpcNetwork = true;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            networkNicMap.put(network.getUuid(), profile);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user