@NonNullByDefault
public interface AttributeRegistry
Modifier and Type | Method and Description |
---|---|
ParsedAttributes |
parseAttributes(io.netty.buffer.ByteBuf buffer,
@Nullable PeerSpecificParserConstraint constraints)
Parse BGP Attribute from buffer.
|
void |
serializeAttribute(Attributes attribute,
io.netty.buffer.ByteBuf byteAggregator)
Serialize BGP Attribute to buffer.
|
ParsedAttributes parseAttributes(io.netty.buffer.ByteBuf buffer, @Nullable PeerSpecificParserConstraint constraints) throws BGPDocumentedException, BGPParsingException
buffer
- Input buffer.constraints
- Peer specific constraint.BGPDocumentedException
- when an unrecoverable error occurs, which is documented via BGPError
BGPParsingException
- when a general unrecoverable parsing error occursvoid serializeAttribute(Attributes attribute, io.netty.buffer.ByteBuf byteAggregator)
attribute
- Input BGP Attribute.byteAggregator
- Output buffer.Copyright © 2020 OpenDaylight. All rights reserved.