Interface NlriParser
- All Known Implementing Classes:
AbstractFlowspecL3vpnNlriParser
,AbstractFlowspecNlriParser
,AbstractVpnNlriParser
,EvpnNlriParser
,FlowspecL3vpnIpv4NlriParser
,FlowspecL3vpnIpv6NlriParser
,Ipv4NlriParser
,Ipv6NlriParser
,L3vpnMcastIpv4NlriHandler
,L3vpnMcastIpv6NlriHandler
,LinkstateNlriParser
,LUNlriParser
,MvpnIpv4NlriHandler
,MvpnIpv6NlriHandler
,RouteTargetConstrainNlriHandler
,SimpleFlowspecIpv4NlriParser
,SimpleFlowspecIpv6NlriParser
,VpnIpv4NlriParser
,VpnIpv6NlriParser
@NonNullByDefault
public interface NlriParser
Common interface for NLRI parser implementation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
convertMpReachToMpUnReach
(MpReachNlri mpReachNlri, MpUnreachNlriBuilder builder) Convert MP_REACH attribute and merge it to existing MpUnreachNlriBuilder.void
parseNlri
(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) Parse MP UN_REACH NLRI from buffer.void
parseNlri
(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) Parse MP UN_REACH NLRI from buffer.
-
Method Details
-
parseNlri
void parseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws BGPParsingException Parse MP UN_REACH NLRI from buffer.- Parameters:
nlri
- Encoded reachable NLRI in ByteBuf.builder
- MP REACH NLRI builder.constraint
- Peer specific constraints.- Throws:
BGPParsingException
- exception.
-
parseNlri
void parseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws BGPParsingException Parse MP UN_REACH NLRI from buffer.- Parameters:
nlri
- Encoded unreachable NLRI in ByteBuf.builder
- MP UNREACH NLRI builder.constraint
- Peer specific constraints.- Throws:
BGPParsingException
- exception.
-
convertMpReachToMpUnReach
Convert MP_REACH attribute and merge it to existing MpUnreachNlriBuilder.- Parameters:
mpReachNlri
- MP_REACH attribute to be convertedbuilder
- to which converted routing information should be added- Returns:
- True if the conversion was successful, false otherwise
-