public ValidationResult passthroughProfileContainsSupportedProperties() {
   return ValidationResult.failWith(
           EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES)
       .when(
           vnicProfile.isPassthrough()
               && (vnicProfile.isPortMirroring() || vnicProfile.getNetworkQosId() != null));
 }
Exemple #2
0
 private ValidationResult providerTypeNotChanged(
     Provider<?> oldProvider, Provider<?> newProvider) {
   return ValidationResult.failWith(EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_PROVIDER_TYPE)
       .when(oldProvider.getType() != newProvider.getType());
 }