Class ClusterIdAttributeParser
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.AbstractAttributeParser
org.opendaylight.protocol.bgp.parser.impl.message.update.ClusterIdAttributeParser
- All Implemented Interfaces:
AttributeParser,AttributeSerializer
public final class ClusterIdAttributeParser
extends AbstractAttributeParser
implements AttributeSerializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder, RevisedErrorHandling errorHandling, PeerSpecificParserConstraint constraint) Parses attribute from ByteBuf buffer with the specifiedRevisedErrorHandling.voidserializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator) 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.AttributeParser
ignoreDuplicates
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
Constructor Details
-
ClusterIdAttributeParser
public ClusterIdAttributeParser()
-
-
Method Details
-
parseAttribute
public void parseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder, RevisedErrorHandling errorHandling, PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPTreatAsWithdrawException Description copied from interface:AttributeParserParses attribute from ByteBuf buffer with the specifiedRevisedErrorHandling. Default implementation ignores error handling and defers toAttributeParser.parseAttribute(ByteBuf, AttributesBuilder, PeerSpecificParserConstraint).- Specified by:
parseAttributein interfaceAttributeParser- Specified by:
parseAttributein classAbstractAttributeParser- Parameters:
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 null- Throws:
BGPDocumentedException- when an irrecoverable error occurred which has aBGPErrorassignedBGPTreatAsWithdrawException- when parsing according to revised error handling indicates the message should be treated as withdraw.
-
serializeAttribute
- Specified by:
serializeAttributein interfaceAttributeSerializer
-