Interface AttributeRegistry


  • @NonNullByDefault
    public interface AttributeRegistry
    Attribute serializer/deserializer registry, exposing the capability to parse BGP attributes as a whole.
    • Method Detail

      • parseAttributes

        ParsedAttributes parseAttributes​(io.netty.buffer.ByteBuf buffer,
                                         @Nullable PeerSpecificParserConstraint constraints)
                                  throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
                                         org.opendaylight.protocol.bgp.parser.BGPParsingException
        Parse BGP Attribute from buffer.
        Parameters:
        buffer - Input buffer.
        constraints - Peer specific constraint.
        Returns:
        Decoded BGP Attribute.
        Throws:
        org.opendaylight.protocol.bgp.parser.BGPDocumentedException - when an unrecoverable error occurs, which is documented via BGPError
        org.opendaylight.protocol.bgp.parser.BGPParsingException - when a general unrecoverable parsing error occurs
      • serializeAttribute

        void serializeAttribute​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.path.attributes.Attributes attribute,
                                io.netty.buffer.ByteBuf byteAggregator)
        Serialize BGP Attribute to buffer.
        Parameters:
        attribute - Input BGP Attribute.
        byteAggregator - Output buffer.