Interface NlriParser
-
@NonNullByDefault public interface NlriParserCommon interface for NLRI parser implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanconvertMpReachToMpUnReach(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlri mpReachNlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.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.update.attributes.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.update.attributes.MpUnreachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint)Parse MP UN_REACH NLRI from buffer.
-
-
-
Method Detail
-
parseNlri
void parseNlri(io.netty.buffer.ByteBuf nlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.MpReachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPParsingExceptionParse 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.update.attributes.MpUnreachNlriBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPParsingExceptionParse 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.update.attributes.MpReachNlri mpReachNlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.update.attributes.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
-
-