Package org.opendaylight.bgp.concepts
Class RouteDistinguisherUtil
java.lang.Object
org.opendaylight.bgp.concepts.RouteDistinguisherUtil
Utility class for of RouteDistinguisher serialization and parsing.
https://tools.ietf.org/html/rfc4364#section-4.2
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RouteDistinguisher
extractRouteDistinguisher
(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid) static @NonNull RouteDistinguisher
parseRouteDistinguisher
(io.netty.buffer.ByteBuf buffer) Parses three types of route distinguisher from given ByteBuf.static @Nullable RouteDistinguisher
static @Nullable RouteDistinguisher
static void
serializeRouteDistinquisher
(RouteDistinguisher distinguisher, io.netty.buffer.ByteBuf byteAggregator) Serializes route distinguisher according to type and writes into ByteBuf.
-
Field Details
-
RD_LENGTH
public static final int RD_LENGTH- See Also:
-
-
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
Parses three types of route distinguisher from given ByteBuf. -
parseRouteDistinguisher
-
parseRouteDistinguisher
-
extractRouteDistinguisher
public static @Nullable RouteDistinguisher extractRouteDistinguisher(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid)
-