public abstract class AbstractVpnNlriParser extends Object implements NlriParser, NlriSerializer
Constructor and Description |
---|
AbstractVpnNlriParser() |
Modifier and Type | Method and 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) |
protected abstract List<VpnDestination> getWithdrawnVpnDestination(DestinationType dstType)
protected abstract List<VpnDestination> getAdvertizedVpnDestination(DestinationType dstType)
protected abstract WithdrawnRoutes getWithdrawnRoutesByDestination(List<VpnDestination> dst)
protected abstract AdvertizedRoutes getAdvertizedRoutesByDestination(List<VpnDestination> dst)
public void serializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)
serializeAttribute
in interface NlriSerializer
public void parseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, PeerSpecificParserConstraint constraint)
NlriParser
parseNlri
in interface NlriParser
nlri
- Encoded unreachable NLRI in ByteBuf.builder
- MP UNREACH NLRI builder.constraint
- Peer specific constraints.public void parseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, PeerSpecificParserConstraint constraint)
NlriParser
parseNlri
in interface NlriParser
nlri
- Encoded reachable NLRI in ByteBuf.builder
- MP REACH NLRI builder.constraint
- Peer specific constraints.Copyright © 2019 OpenDaylight. All rights reserved.