Ejemplo n.º 1
0
 public ValidationResult passthroughProfileContainsSupportedProperties() {
   return ValidationResult.failWith(
           EngineMessage.ACTION_TYPE_FAILED_PASSTHROUGH_PROFILE_CONTAINS_NOT_SUPPORTED_PROPERTIES)
       .when(
           vnicProfile.isPassthrough()
               && (vnicProfile.isPortMirroring() || vnicProfile.getNetworkQosId() != null));
 }
Ejemplo n.º 2
0
 public ValidationResult networkQosExistsOrNull() {
   return vnicProfile.getNetworkQosId() == null
           || getDbFacade().getNetworkQosDao().get(vnicProfile.getNetworkQosId()) != null
       ? ValidationResult.VALID
       : new ValidationResult(EngineMessage.ACTION_TYPE_FAILED_NETWORK_QOS_NOT_EXISTS);
 }