mirror of https://github.com/apache/cloudstack.git
permit adding external devices when service provider is in disabled state
This commit is contained in:
parent
994d42920e
commit
eee79d56a3
|
|
@ -159,8 +159,7 @@ public abstract class ExternalFirewallDeviceManagerImpl extends AdapterBase impl
|
|||
if (ntwkSvcProvider == null ) {
|
||||
throw new CloudRuntimeException("Network Service Provider: " + ntwkDevice.getNetworkServiceProvder() +
|
||||
" is not enabled in the physical network: " + physicalNetworkId + "to add this device" );
|
||||
} else if ((ntwkSvcProvider.getState() == PhysicalNetworkServiceProvider.State.Shutdown)
|
||||
|| (ntwkSvcProvider.getState() == PhysicalNetworkServiceProvider.State.Disabled)) {
|
||||
} else if (ntwkSvcProvider.getState() == PhysicalNetworkServiceProvider.State.Shutdown) {
|
||||
throw new CloudRuntimeException("Network Service Provider: " + ntwkSvcProvider.getProviderName() +
|
||||
" is not added or in shutdown state in the physical network: " + physicalNetworkId + "to add this device" );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue