Class ActionUtil


  • public final class ActionUtil
    extends Object
    OF-action related utilities.
    • 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 org.opendaylight.yangtools.yang.common.Uint8 dscpToTos​(short dscpValue)
        Converts DSCP to TOS value.
        Parameters:
        dscpValue - TypeOfService value
        Returns:
        TOS value