Class FlowCreatorUtil
java.lang.Object
org.opendaylight.openflowplugin.impl.util.FlowCreatorUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanModifyFlow(OriginalFlow original, UpdatedFlow updated, org.opendaylight.yangtools.yang.common.Uint8 version) Determine whether a flow entry can be modified or not.static Matchstatic MatchV10Method creates openflow 1.0 format match, that can match all the flow entries.static booleanequalsFlowModFlags(FlowModFlags flags1, FlowModFlags flags2) Returntrueonly if given two FLOW_MOD flags are identical.static <T> booleanequalsWithDefault(T value1, T value2, T def) Returntrueonly if given two values are identical.static voidsetWildcardedFlowMatch(org.opendaylight.yangtools.yang.common.Uint8 version, MultipartRequestAggregateBuilder aggregateBuilder) static voidsetWildcardedFlowMatch(org.opendaylight.yangtools.yang.common.Uint8 version, MultipartRequestFlowBuilder flowBuilder)
-
Field Details
-
DEFAULT_FLOW_MOD_FLAGS
Default FLOW_MOD flags.
-
-
Method Details
-
setWildcardedFlowMatch
public static void setWildcardedFlowMatch(org.opendaylight.yangtools.yang.common.Uint8 version, MultipartRequestFlowBuilder flowBuilder) -
setWildcardedFlowMatch
public static void setWildcardedFlowMatch(org.opendaylight.yangtools.yang.common.Uint8 version, MultipartRequestAggregateBuilder aggregateBuilder) -
createWildcardedMatchV10
Method creates openflow 1.0 format match, that can match all the flow entries.- Returns:
- V10 Match object
-
createWildcardedMatch
-
canModifyFlow
public static boolean canModifyFlow(OriginalFlow original, UpdatedFlow updated, org.opendaylight.yangtools.yang.common.Uint8 version) Determine whether a flow entry can be modified or not.- Parameters:
original- An original flow entry.updated- An updated flow entry.version- Protocol version.- Returns:
trueonly if a flow entry can be modified.
-
equalsFlowModFlags
Returntrueonly if given two FLOW_MOD flags are identical.- Parameters:
flags1- A value to be compared.flags2- A value to be compared.- Returns:
trueonly ifflags1andflags2are identical.
-
equalsWithDefault
public static <T> boolean equalsWithDefault(T value1, T value2, T def) Returntrueonly if given two values are identical.- Type Parameters:
T- Type of values.- Parameters:
value1- A value to be compared.value2- A value to be compared.def- Default value. This value is used ifnullis passed tovalue1orvalue2.- Returns:
trueonly ifvalue1andvalue2are identical.
-