Class ReachAttributeParser
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.AbstractAttributeParser
org.opendaylight.protocol.bgp.parser.impl.message.update.ReachAttributeParser
- All Implemented Interfaces:
org.opendaylight.protocol.bgp.parser.spi.AttributeParser,org.opendaylight.protocol.bgp.parser.spi.AttributeSerializer
- Direct Known Subclasses:
MPReachAttributeParser,MPUnreachAttributeParser
public abstract class ReachAttributeParser
extends org.opendaylight.protocol.bgp.parser.spi.AbstractAttributeParser
implements org.opendaylight.protocol.bgp.parser.spi.AttributeSerializer
Abstract base class for reachability attribute parsers,
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanignoreDuplicates(org.opendaylight.protocol.bgp.parser.spi.RevisedErrorHandling errorHandling) abstract voidparseAttribute(io.netty.buffer.ByteBuf buffer, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.path.attributes.AttributesBuilder builder, org.opendaylight.protocol.bgp.parser.spi.RevisedErrorHandling errorHandling, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) Methods inherited from class org.opendaylight.protocol.bgp.parser.spi.AbstractAttributeParser
parseAttributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.protocol.bgp.parser.spi.AttributeSerializer
serializeAttribute
-
Constructor Details
-
ReachAttributeParser
public ReachAttributeParser()
-
-
Method Details
-
ignoreDuplicates
public boolean ignoreDuplicates(org.opendaylight.protocol.bgp.parser.spi.RevisedErrorHandling errorHandling) - Specified by:
ignoreDuplicatesin interfaceorg.opendaylight.protocol.bgp.parser.spi.AttributeParser
-
parseAttribute
public abstract void parseAttribute(io.netty.buffer.ByteBuf buffer, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.path.attributes.AttributesBuilder builder, org.opendaylight.protocol.bgp.parser.spi.RevisedErrorHandling errorHandling, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException - Specified by:
parseAttributein interfaceorg.opendaylight.protocol.bgp.parser.spi.AttributeParser- Specified by:
parseAttributein classorg.opendaylight.protocol.bgp.parser.spi.AbstractAttributeParser- Throws:
org.opendaylight.protocol.bgp.parser.BGPDocumentedException
-