mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	bug 10553: allow networkDomain update for Guest system network in Basic zone
status 10553: resolved fixed
This commit is contained in:
		
							parent
							
								
									1c73e378da
								
							
						
					
					
						commit
						01a47e0717
					
				| @ -25,7 +25,6 @@ import com.cloud.api.BaseCmd; | ||||
| import com.cloud.api.Implementation; | ||||
| import com.cloud.api.Parameter; | ||||
| import com.cloud.api.ServerApiException; | ||||
| import com.cloud.api.BaseCmd.CommandType; | ||||
| import com.cloud.api.response.ZoneResponse; | ||||
| import com.cloud.dc.DataCenter; | ||||
| import com.cloud.user.Account; | ||||
|  | ||||
| @ -27,7 +27,6 @@ import com.cloud.api.BaseCmd; | ||||
| import com.cloud.api.Implementation; | ||||
| import com.cloud.api.Parameter; | ||||
| import com.cloud.api.ServerApiException; | ||||
| import com.cloud.api.BaseCmd.CommandType; | ||||
| import com.cloud.api.response.NetworkResponse; | ||||
| import com.cloud.exception.ConcurrentOperationException; | ||||
| import com.cloud.exception.InsufficientCapacityException; | ||||
|  | ||||
| @ -2917,9 +2917,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag | ||||
|             throw new InvalidParameterException("Unable to support more than one tag on network yet"); | ||||
|         } | ||||
|          | ||||
|         // Don't allow to update system network | ||||
|         // Don't allow to update system network - make an exception for the Guest network in Basic zone | ||||
|         NetworkOffering offering = _networkOfferingDao.findByIdIncludingRemoved(network.getNetworkOfferingId()); | ||||
|         if (offering.isSystemOnly()) { | ||||
|         if (offering.isSystemOnly() && network.getTrafficType() != TrafficType.Guest) { | ||||
|             throw new InvalidParameterValueException("Can't update system networks"); | ||||
|         } | ||||
|          | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user