java.lang.Object
org.opendaylight.protocol.bgp.linkstate.impl.attribute.sr.SidLabelIndexParser

public final class SidLabelIndexParser extends Object
  • Method Details

    • serializeSidValue

      public static io.netty.buffer.ByteBuf serializeSidValue(SidLabelIndex tlv)
    • parseSidLabelIndex

      public static SidLabelIndex parseSidLabelIndex(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer)
    • parseSidLabelIndexByFlags

      public static SidLabelIndex parseSidLabelIndexByFlags(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer, boolean isValue, boolean isLocal)
      Parses SID/Label/Index value into appropriate type based on V-Flag and L-Flag values. This method is required as some device-side implementations incorrectly encode SID/Label/Index value using wrong type e.g. Label type to encode an Index value (V-Flag=false, L-Flag=false).
      Parameters:
      length - length of SID/Label/Index value
      buffer - buffer containing SID/Label/Index value
      isValue - V-Flag value
      isLocal - L-Flag value
      Returns:
      SID/Label/Index value parsed into the appropriate type