Interface NlriParser
@NonNullByDefault
public interface NlriParser
Common interface for NLRI parser implementation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanconvertMpReachToMpUnReach(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.reach.MpReachNlri mpReachNlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.unreach.MpUnreachNlriBuilder builder) Convert MP_REACH attribute and merge it to existing MpUnreachNlriBuilder.voidparseNlri(io.netty.buffer.ByteBuf nlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.reach.MpReachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) Parse MP UN_REACH NLRI from buffer.voidparseNlri(io.netty.buffer.ByteBuf nlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.unreach.MpUnreachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) Parse MP UN_REACH NLRI from buffer.
-
Method Details
-
parseNlri
void parseNlri(io.netty.buffer.ByteBuf nlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.reach.MpReachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.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:
org.opendaylight.protocol.bgp.parser.BGPParsingException- exception.
-
parseNlri
void parseNlri(io.netty.buffer.ByteBuf nlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.unreach.MpUnreachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.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:
org.opendaylight.protocol.bgp.parser.BGPParsingException- exception.
-
convertMpReachToMpUnReach
default boolean convertMpReachToMpUnReach(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.reach.MpReachNlri mpReachNlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.attributes.unreach.MpUnreachNlriBuilder builder) 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
-