Class BgpPrefixSidAttributeParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.impl.message.update.BgpPrefixSidAttributeParser
-
- All Implemented Interfaces:
AttributeParser,AttributeSerializer
public final class BgpPrefixSidAttributeParser extends Object implements AttributeParser, AttributeSerializer
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE
-
Constructor Summary
Constructors Constructor Description BgpPrefixSidAttributeParser(BgpPrefixSidTlvRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder, PeerSpecificParserConstraint constraint)Parses attribute from ByteBuf buffer.voidserializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.protocol.bgp.parser.spi.AttributeParser
ignoreDuplicates, parseAttribute
-
-
-
-
Field Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BgpPrefixSidAttributeParser
public BgpPrefixSidAttributeParser(BgpPrefixSidTlvRegistry registry)
-
-
Method Detail
-
serializeAttribute
public void serializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)
- Specified by:
serializeAttributein interfaceAttributeSerializer
-
parseAttribute
public void parseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder, PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPParsingExceptionDescription copied from interface:AttributeParserParses attribute from ByteBuf buffer.- Specified by:
parseAttributein interfaceAttributeParser- 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.constraint- Peer specific constraints, may be null- Throws:
BGPDocumentedException- when an irrecoverable error occurred which has aBGPErrorassignedBGPParsingException- when a general unspecified parsing error occurs.
-
-