Class RouteDistinguisherUtil


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

      • 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 RouteDistinguisher parseRouteDistinguisher​(io.netty.buffer.ByteBuf buffer)
        Parses three types of route distinguisher from given ByteBuf.
      • extractRouteDistinguisher

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