Class RouteTargetConstrainNlriHandler
java.lang.Object
org.opendaylight.protocol.bgp.route.targetcontrain.impl.nlri.RouteTargetConstrainNlriHandler
- All Implemented Interfaces:
NlriParser,NlriSerializer
public final class RouteTargetConstrainNlriHandler
extends Object
implements NlriParser, NlriSerializer
Route Target Nlri Handler.
- Author:
- Claudio D. Gasparini
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, PeerSpecificParserConstraint constraint) Parse MP UN_REACH NLRI from buffer.voidparseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, PeerSpecificParserConstraint constraint) Parse MP UN_REACH NLRI from buffer.voidserializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator) static io.netty.buffer.ByteBufserializeNlriDestinations(List<RouteTargetConstrainDestination> destinationList) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.protocol.bgp.parser.spi.NlriParser
convertMpReachToMpUnReach
-
Constructor Details
-
RouteTargetConstrainNlriHandler
public RouteTargetConstrainNlriHandler()
-
-
Method Details
-
serializeNlriDestinations
public static io.netty.buffer.ByteBuf serializeNlriDestinations(List<RouteTargetConstrainDestination> destinationList) -
parseNlri
public void parseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, PeerSpecificParserConstraint constraint) throws BGPParsingException Description copied from interface:NlriParserParse MP UN_REACH NLRI from buffer.- Specified by:
parseNlriin interfaceNlriParser- Parameters:
nlri- Encoded reachable NLRI in ByteBuf.builder- MP REACH NLRI builder.constraint- Peer specific constraints.- Throws:
BGPParsingException- exception.
-
parseNlri
public void parseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, PeerSpecificParserConstraint constraint) throws BGPParsingException Description copied from interface:NlriParserParse MP UN_REACH NLRI from buffer.- Specified by:
parseNlriin interfaceNlriParser- Parameters:
nlri- Encoded unreachable NLRI in ByteBuf.builder- MP UNREACH NLRI builder.constraint- Peer specific constraints.- Throws:
BGPParsingException- exception.
-
serializeAttribute
- Specified by:
serializeAttributein interfaceNlriSerializer
-