permit adding external devices when service provider is in disabled state

This commit is contained in:
Murali Reddy 2011-11-18 11:10:08 -08:00
parent 994d42920e
commit eee79d56a3
1 changed files with 1 additions and 2 deletions

View File

@ -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" );
}