public final class MPUnreachAttributeParser extends Object implements AttributeParser, AttributeSerializer
Modifier and Type | Field and Description |
---|---|
static int |
TYPE |
Constructor and Description |
---|
MPUnreachAttributeParser(NlriRegistry reg) |
Modifier and Type | Method and Description |
---|---|
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder)
Parses attribute from ByteBuf buffer.
|
void |
parseAttribute(io.netty.buffer.ByteBuf buffer,
AttributesBuilder builder,
PeerSpecificParserConstraint constraint)
Invokes
AttributeParser.parseAttribute(ByteBuf, AttributesBuilder) , so the constraint is omitted. |
void |
serializeAttribute(org.opendaylight.yangtools.yang.binding.DataObject attribute,
io.netty.buffer.ByteBuf byteAggregator) |
public static final int TYPE
public MPUnreachAttributeParser(NlriRegistry reg)
public void parseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder) throws BGPDocumentedException
AttributeParser
parseAttribute
in interface AttributeParser
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.BGPDocumentedException
public void parseAttribute(io.netty.buffer.ByteBuf buffer, AttributesBuilder builder, PeerSpecificParserConstraint constraint) throws BGPDocumentedException
AttributeParser
AttributeParser.parseAttribute(ByteBuf, AttributesBuilder)
, so the constraint is omitted. Override for specific parser behavior.parseAttribute
in interface AttributeParser
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.BGPDocumentedException
public void serializeAttribute(org.opendaylight.yangtools.yang.binding.DataObject attribute, io.netty.buffer.ByteBuf byteAggregator)
serializeAttribute
in interface AttributeSerializer
Copyright © 2018 OpenDaylight. All rights reserved.