Class ActionUtil
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.openflow.md.util.ActionUtil
 
 
- 
public final class ActionUtil extends Object
OF-action related utilities. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intENC_FIELD_BIT_SIZEhttp://en.wikipedia.org/wiki/IPv4#Packet_structure (end of octet number 1, bit 14.+15.). 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShortdscpToTos(short dscpValue)Converts DSCP to TOS value.static ShorttosToDscp(short tosValue)Converts TOS to DSCP value.static org.opendaylight.yangtools.yang.common.Uint8tosToDscp(org.opendaylight.yangtools.yang.common.Uint8 tosValue) 
 - 
 
- 
- 
Field Detail
- 
ENC_FIELD_BIT_SIZE
public static final int ENC_FIELD_BIT_SIZE
http://en.wikipedia.org/wiki/IPv4#Packet_structure (end of octet number 1, bit 14.+15.).- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
tosToDscp
public static Short 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 Short dscpToTos(short dscpValue)
Converts DSCP to TOS value.- Parameters:
 dscpValue- TypeOfService value- Returns:
 - TOS value
 
 
 - 
 
 -