Only Virtual Router can be specified as a provider for the Firewall service

This commit is contained in:
Alena Prokharchyk 2012-01-30 15:26:43 -08:00
parent 0196eb5679
commit cd56bf9f60
1 changed files with 6 additions and 0 deletions

View File

@ -3014,6 +3014,12 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
if (provider == null) {
throw new InvalidParameterValueException("Invalid service provider: " + prvNameStr);
}
//Only VirtualRouter can be specified as a firewall provider
if (service == Service.Firewall && provider != Provider.VirtualRouter) {
throw new InvalidParameterValueException("Only Virtual router can be specified as a provider for the Firewall service");
}
providers.add(provider);
Set<Service> serviceSet = null;