public enum ActionType extends Enum<ActionType> implements OfpCodeBasedEnum
Enum Constant and Description |
---|
COPY_TTL_IN
Copy TTL "inwards" -- from outermost to
next-to-outermost; Since 1.1.
|
COPY_TTL_OUT
Copy TTL "outwards" -- from next-to-outermost
to outermost; Since 1.1.
|
DEC_MPLS_TTL
Decrement MPLS TTL; Since 1.1.
|
DEC_NW_TTL
Decrement IP TTL; Since 1.1.
|
EXPERIMENTER
Experimenter action; Since 1.1.
|
GROUP
Apply group; Since 1.1.
|
OUTPUT
Output to switch port; Since 1.0.
|
POP_MPLS
Pop the outer MPLS tag; Since 1.1.
|
POP_PBB
Pop the outer PBB service tag (I-TAG); Since 1.3.
|
POP_VLAN
Pop the outer VLAN tag; Since 1.1.
|
PUSH_MPLS
Push a new MPLS tag; Since 1.1.
|
PUSH_PBB
Push a new PBB service tag (I-TAG); Since 1.3.
|
PUSH_VLAN
Push a new VLAN tag; Since 1.1.
|
SET_FIELD
Set a header field using OXM TLV format; Since 1.2.
|
SET_MPLS_TTL
Set MPLS TTL; Since 1.1.
|
SET_NW_TTL
Set IP TTL; Simce 1.1.
|
SET_QUEUE
Set queue id when outputting to a port; Since 1.1.
|
Modifier and Type | Method and Description |
---|---|
static Set<ActionType> |
decodeFlags(int bitmap,
ProtocolVersion pv)
Decodes the action type flags, based on the code associated with the
flags, and returns the set of corresponding constants.
|
static int |
encodeFlags(Set<ActionType> flags,
ProtocolVersion pv)
Encodes a set of action type flags as a bitmap.
|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static ActionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ActionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActionType OUTPUT
public static final ActionType COPY_TTL_OUT
public static final ActionType COPY_TTL_IN
public static final ActionType SET_MPLS_TTL
public static final ActionType DEC_MPLS_TTL
public static final ActionType PUSH_VLAN
public static final ActionType POP_VLAN
public static final ActionType PUSH_MPLS
public static final ActionType POP_MPLS
public static final ActionType SET_QUEUE
public static final ActionType GROUP
public static final ActionType SET_NW_TTL
public static final ActionType DEC_NW_TTL
public static final ActionType SET_FIELD
public static final ActionType PUSH_PBB
public static final ActionType POP_PBB
public static final ActionType EXPERIMENTER
VENDOR
in 1.0.)public static ActionType[] values()
for (ActionType c : ActionType.values()) System.out.println(c);
public static ActionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode(ProtocolVersion pv)
OfpCodeBasedEnum
getCode
in interface OfpCodeBasedEnum
pv
- the protocol versionpublic static Set<ActionType> decodeFlags(int bitmap, ProtocolVersion pv)
bitmap
- the bitmap to decodepv
- the protocol versionNullPointerException
- if protocol version is nullVersionMismatchException
- if a bit position is not supported
in the given versionpublic static int encodeFlags(Set<ActionType> flags, ProtocolVersion pv)
flags
parameter may be empty, in which case a bitmap of 0 (zero) is returned.flags
- the flags to encodepv
- the protocol versionNullPointerException
- if either parameter is nullIllegalArgumentException
- if code associated with enumeration
constant is outside the valid range (0 - 31)VersionMismatchException
- if a flag is present that is not
supported in the given protocol versionCopyright © 2015. All Rights Reserved.