Class RouteDistinguisherUtil

java.lang.Object
org.opendaylight.bgp.concepts.RouteDistinguisherUtil

public final class RouteDistinguisherUtil extends Object
Utility class for of RouteDistinguisher serialization and parsing. https://tools.ietf.org/html/rfc4364#section-4.2
  • Field Details

  • Method Details

    • serializeRouteDistinquisher

      public static void serializeRouteDistinquisher(RouteDistinguisher distinguisher, io.netty.buffer.ByteBuf byteAggregator)
      Serializes route distinguisher according to type and writes into ByteBuf.
    • parseRouteDistinguisher

      public static @NonNull RouteDistinguisher parseRouteDistinguisher(io.netty.buffer.ByteBuf buffer)
      Parses three types of route distinguisher from given ByteBuf.
    • parseRouteDistinguisher

      public static @Nullable RouteDistinguisher parseRouteDistinguisher(String str)
    • parseRouteDistinguisher

      public static @Nullable RouteDistinguisher parseRouteDistinguisher(Object obj)
    • extractRouteDistinguisher

      public static @Nullable RouteDistinguisher extractRouteDistinguisher(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid)