public interface AttributeParser
AbstractAttributeParser and provide an RFC7606-compliant interface.| Modifier and Type | Method and Description |
|---|---|
default boolean |
ignoreDuplicates(RevisedErrorHandling errorHandling)
Determine whether a duplicate attribute should be ignored or
BGPError.MALFORMED_ATTR_LIST should be
raised. |
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder builder,
PeerSpecificParserConstraint constraint)
Parses attribute from ByteBuf buffer.
|
default void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
Parses attribute from ByteBuf buffer with the specified
RevisedErrorHandling. |
void parseAttribute(@Nonnull io.netty.buffer.ByteBuf buffer, @Nonnull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder builder, @Nullable PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException, org.opendaylight.protocol.bgp.parser.BGPParsingException
buffer - Encoded attribute body in ByteBuf.builder - Path attributes builder. Guaranteed to contain all valid attributes whose type is numerically
lower than this attribute's type.constraint - Peer specific constraints, may be nullorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - when an irrecoverable error occurred which has a BGPError assignedorg.opendaylight.protocol.bgp.parser.BGPParsingException - when a general unspecified parsing error occurs.default void parseAttribute(@Nonnull io.netty.buffer.ByteBuf buffer, @Nonnull org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder builder, @Nonnull RevisedErrorHandling errorHandling, @Nullable PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException, org.opendaylight.protocol.bgp.parser.BGPParsingException, org.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException
RevisedErrorHandling. Default implementation
ignores error handling and defers to
parseAttribute(ByteBuf, AttributesBuilder, PeerSpecificParserConstraint).buffer - Encoded attribute body in ByteBuf.builder - Path attributes builder. Guaranteed to contain all valid attributes whose type is numerically
lower than this attribute's type.errorHandling - RFC7606 error handling typeconstraint - Peer specific constraints, may be nullorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - when an irrecoverable error occurred which has a BGPError assignedorg.opendaylight.protocol.bgp.parser.BGPParsingException - when a general unspecified parsing error occurs.org.opendaylight.protocol.bgp.parser.BGPTreatAsWithdrawException - when parsing according to revised error handling indicates the
message should be treated as withdraw.default boolean ignoreDuplicates(@Nonnull RevisedErrorHandling errorHandling)
BGPError.MALFORMED_ATTR_LIST should be
raised. This is useful for MP_REACH/MP_UNREACH attributes, which need to emit a Notification under RFC7606
rules.errorHandling - Revised error handling typeCopyright © 2019 OpenDaylight. All rights reserved.