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 final int
    http://en.wikipedia.org/wiki/IPv4#Packet_structure (end of octet number 1, bit 14.+15.).
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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:
  • 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