Class ActionUtil
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.util.ActionUtil
OF-action related utilities.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
http://en.wikipedia.org/wiki/IPv4#Packet_structure (end of octet number 1, bit 14.+15.). -
Method Summary
Modifier and TypeMethodDescriptionstatic org.opendaylight.yangtools.yang.common.Uint8
dscpToTos
(short dscpValue) Converts DSCP to TOS value.static org.opendaylight.yangtools.yang.common.Uint8
tosToDscp
(short tosValue) Converts TOS to DSCP value.static org.opendaylight.yangtools.yang.common.Uint8
tosToDscp
(org.opendaylight.yangtools.yang.common.Uint8 tosValue)
-
Field Details
-
ENC_FIELD_BIT_SIZE
public static final int ENC_FIELD_BIT_SIZEhttp://en.wikipedia.org/wiki/IPv4#Packet_structure (end of octet number 1, bit 14.+15.).- See Also:
-
-
Method Details
-
tosToDscp
public static org.opendaylight.yangtools.yang.common.Uint8 tosToDscp(short tosValue) Converts TOS to DSCP value.- Parameters:
tosValue
- TypeOfService value- Returns:
- DSCP value
-
tosToDscp
public static org.opendaylight.yangtools.yang.common.Uint8 tosToDscp(org.opendaylight.yangtools.yang.common.Uint8 tosValue) -
dscpToTos
public static org.opendaylight.yangtools.yang.common.Uint8 dscpToTos(short dscpValue) Converts DSCP to TOS value.- Parameters:
dscpValue
- TypeOfService value- Returns:
- TOS value
-