public abstract class ReachAttributeParser extends AbstractAttributeParser implements AttributeSerializer
MPReachAttributeParser and
MPUnreachAttributeParser. These attributes share their RFC7606 handling in that failure to parse them
cannot lead to a treat-as-withdraw handling of the message. Individual parser may need access to
RevisedErrorHandling for AFI/SAFI-specific parsing.| Constructor and Description |
|---|
ReachAttributeParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ignoreDuplicates(RevisedErrorHandling errorHandling)
Determine whether a duplicate attribute should be ignored or
BGPError.MALFORMED_ATTR_LIST should be
raised. |
abstract void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
Parses attribute from ByteBuf buffer with the specified
RevisedErrorHandling. |
parseAttributeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserializeAttributepublic boolean ignoreDuplicates(RevisedErrorHandling errorHandling)
AttributeParserBGPError.MALFORMED_ATTR_LIST should be
raised. This is useful for MP_REACH/MP_UNREACH attributes, which need to emit a Notification under RFC7606
rules.ignoreDuplicates in interface AttributeParsererrorHandling - Revised error handling typepublic abstract void parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
RevisedErrorHandling errorHandling,
PeerSpecificParserConstraint constraint)
throws BGPDocumentedException
AttributeParserRevisedErrorHandling. Default implementation
ignores error handling and defers to
AttributeParser.parseAttribute(ByteBuf, AttributesBuilder, PeerSpecificParserConstraint).parseAttribute in interface AttributeParserparseAttribute in class AbstractAttributeParserbuffer - 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 nullBGPDocumentedException - when an irrecoverable error occurred which has a BGPError assignedCopyright © 2020 OpenDaylight. All rights reserved.