src-java/flowhs-topology/flowhs-storm-topology/src/main/java/org/openkilda/wfm/topology/flowhs/validation/FlowValidator.java
/**
     * Ensure vlans are not equal in the case when there is an attempt to create one-switch flow for a single port.
     */
Ensure vlans are not equal in the case when there is an attempt to create one-switch flow for a single port.
Ensure vlans are not equal in the case when there is an attempt to create one - switch flow for a single port .
@VisibleForTesting
    private void checkOneSwitchFlowConflict(FlowEndpoint source, FlowEndpoint destination) throws InvalidFlowException {
        if (source.isSwitchPortVlanEquals(destination)) {
            throw new InvalidFlowException(
                    "It is not allowed to create one-switch flow for the same ports and vlans", ErrorType.DATA_INVALID);
        }
    }
@ VisibleForTesting private void checkOneSwitchFlowConflict ( FlowEndpoint source , FlowEndpoint destination ) throws InvalidFlowException { if ( source . isSwitchPortVlanEquals ( destination ) ) { throw new InvalidFlowException ( "It is not allowed to create one-switch flow for the same ports and vlans" , ErrorType . DATA_INVALID ) ; } }
Ensure vlans are not equal in the case when there is an attempt to create one-switch flow for a single port.
Ensure vlans are not equal in the case when there is an attempt to create one - switch flow for a single port .