Class AbstractVpnNlriParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.l3vpn.unicast.AbstractVpnNlriParser
-
- All Implemented Interfaces:
NlriParser
,NlriSerializer
- Direct Known Subclasses:
VpnIpv4NlriParser
,VpnIpv6NlriParser
public abstract class AbstractVpnNlriParser extends Object implements NlriParser, NlriSerializer
-
-
Constructor Summary
Constructors Constructor Description AbstractVpnNlriParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AdvertizedRoutes
getAdvertizedRoutesByDestination(List<VpnDestination> dst)
protected abstract List<VpnDestination>
getAdvertizedVpnDestination(DestinationType dstType)
protected abstract WithdrawnRoutes
getWithdrawnRoutesByDestination(List<VpnDestination> dst)
protected abstract List<VpnDestination>
getWithdrawnVpnDestination(DestinationType dstType)
void
parseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, PeerSpecificParserConstraint constraint)
Parse MP UN_REACH NLRI from buffer.void
parseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, PeerSpecificParserConstraint constraint)
Parse MP UN_REACH NLRI from buffer.void
serializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.protocol.bgp.parser.spi.NlriParser
convertMpReachToMpUnReach
-
-
-
-
Method Detail
-
getWithdrawnVpnDestination
protected abstract List<VpnDestination> getWithdrawnVpnDestination(DestinationType dstType)
-
getAdvertizedVpnDestination
protected abstract List<VpnDestination> getAdvertizedVpnDestination(DestinationType dstType)
-
getWithdrawnRoutesByDestination
protected abstract WithdrawnRoutes getWithdrawnRoutesByDestination(List<VpnDestination> dst)
-
getAdvertizedRoutesByDestination
protected abstract AdvertizedRoutes getAdvertizedRoutesByDestination(List<VpnDestination> dst)
-
serializeAttribute
public void serializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)
- Specified by:
serializeAttribute
in interfaceNlriSerializer
-
parseNlri
public void parseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, PeerSpecificParserConstraint constraint)
Description copied from interface:NlriParser
Parse MP UN_REACH NLRI from buffer.- Specified by:
parseNlri
in interfaceNlriParser
- Parameters:
nlri
- Encoded unreachable NLRI in ByteBuf.builder
- MP UNREACH NLRI builder.constraint
- Peer specific constraints.
-
parseNlri
public void parseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, PeerSpecificParserConstraint constraint)
Description copied from interface:NlriParser
Parse MP UN_REACH NLRI from buffer.- Specified by:
parseNlri
in interfaceNlriParser
- Parameters:
nlri
- Encoded reachable NLRI in ByteBuf.builder
- MP REACH NLRI builder.constraint
- Peer specific constraints.
-
-