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
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RouteDistinguisherextractRouteDistinguisher(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid) static @NonNull RouteDistinguisherparseRouteDistinguisher(io.netty.buffer.ByteBuf buffer) Parses three types of route distinguisher from given ByteBuf.static @NonNull RouteDistinguisherparseRouteDistinguisher(String defaultValue) static voidserializeRouteDistinquisher(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
 - 
extractRouteDistinguisher
public static @Nullable RouteDistinguisher extractRouteDistinguisher(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode route, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier rdNid)  
 -