public final class FlowCreatorUtil extends Object
Modifier and Type | Field and Description |
---|---|
static FlowModFlags |
DEFAULT_FLOW_MOD_FLAGS
Default FLOW_MOD flags.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canModifyFlow(OriginalFlow original,
UpdatedFlow updated,
Short version)
Determine whether a flow entry can be modified or not.
|
static Match |
createWildcardedMatch() |
static MatchV10 |
createWildcardedMatchV10()
Method creates openflow 1.0 format match, that can match all the flow entries.
|
static boolean |
equalsFlowModFlags(FlowModFlags flags1,
FlowModFlags flags2)
Return
true only if given two FLOW_MOD flags are identical. |
static <T> boolean |
equalsWithDefault(T value1,
T value2,
T def)
Return
true only if given two values are identical. |
static void |
setWildcardedFlowMatch(short version,
MultipartRequestAggregateBuilder aggregateBuilder) |
static void |
setWildcardedFlowMatch(short version,
MultipartRequestFlowBuilder flowBuilder) |
public static final FlowModFlags DEFAULT_FLOW_MOD_FLAGS
public static void setWildcardedFlowMatch(short version, MultipartRequestFlowBuilder flowBuilder)
public static void setWildcardedFlowMatch(short version, MultipartRequestAggregateBuilder aggregateBuilder)
public static MatchV10 createWildcardedMatchV10()
public static Match createWildcardedMatch()
public static boolean canModifyFlow(OriginalFlow original, UpdatedFlow updated, Short version)
original
- An original flow entry.updated
- An updated flow entry.version
- Protocol version.true
only if a flow entry can be modified.public static boolean equalsFlowModFlags(FlowModFlags flags1, FlowModFlags flags2)
true
only if given two FLOW_MOD flags are identical.flags1
- A value to be compared.flags2
- A value to be compared.true
only if flags1
and flags2
are identical.public static <T> boolean equalsWithDefault(T value1, T value2, T def)
true
only if given two values are identical.T
- Type of values.value1
- A value to be compared.value2
- A value to be compared.def
- Default value. This value is used if null
is passed to
value1
or value2
.true
only if value1
and value2
are identical.Copyright © 2020 OpenDaylight. All rights reserved.