Package org.opendaylight.bgp.concepts
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 Summary
Fields Modifier and Type Field Description static int
RD_LENGTH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RouteDistinguisher
extractRouteDistinguisher(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid)
static RouteDistinguisher
parseRouteDistinguisher(io.netty.buffer.ByteBuf buffer)
Parses three types of route distinguisher from given ByteBuf.static RouteDistinguisher
parseRouteDistinguisher(Object obj)
static RouteDistinguisher
parseRouteDistinguisher(String str)
static void
serializeRouteDistinquisher(RouteDistinguisher distinguisher, io.netty.buffer.ByteBuf byteAggregator)
Serializes route distinguisher according to type and writes into ByteBuf.
-
-
-
Field Detail
-
RD_LENGTH
public static final int RD_LENGTH
- See Also:
- Constant Field Values
-
-
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.
-
parseRouteDistinguisher
public static RouteDistinguisher parseRouteDistinguisher(String str)
-
parseRouteDistinguisher
public static RouteDistinguisher parseRouteDistinguisher(Object obj)
-
extractRouteDistinguisher
public static RouteDistinguisher extractRouteDistinguisher(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid)
-
-