java.lang.Object
org.opendaylight.protocol.bgp.linkstate.spi.TlvUtil

public final class TlvUtil extends Object
  • Field Details

    • TOPOLOGY_ID_OFFSET

      public static final int TOPOLOGY_ID_OFFSET
      See Also:
    • MULTI_TOPOLOGY_ID

      public static final int MULTI_TOPOLOGY_ID
      See Also:
    • MULTI_TOPOLOGY_NID

      public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier MULTI_TOPOLOGY_NID
    • LOCAL_IPV4_ROUTER_ID

      public static final int LOCAL_IPV4_ROUTER_ID
      See Also:
    • LOCAL_IPV6_ROUTER_ID

      public static final int LOCAL_IPV6_ROUTER_ID
      See Also:
  • Method Details

    • writeTLV

      public static void writeTLV(int type, io.netty.buffer.ByteBuf value, io.netty.buffer.ByteBuf byteAggregator)
      Util method for writing TLV header.
      Parameters:
      type - TLV type (2B)
      value - TLV value (2B)
      byteAggregator - final ByteBuf where the tlv should be serialized