Class BGPUpdateMessageParser

java.lang.Object
org.opendaylight.protocol.bgp.parser.impl.message.BGPUpdateMessageParser
All Implemented Interfaces:
org.opendaylight.protocol.bgp.parser.spi.MessageParser, org.opendaylight.protocol.bgp.parser.spi.MessageSerializer

public final class BGPUpdateMessageParser extends Object implements org.opendaylight.protocol.bgp.parser.spi.MessageParser, org.opendaylight.protocol.bgp.parser.spi.MessageSerializer
LENGTH fields, that denote the length of the fields with variable length, have fixed SIZE.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BGPUpdateMessageParser(org.opendaylight.protocol.bgp.parser.spi.AttributeRegistry attrReg, org.opendaylight.protocol.bgp.parser.spi.NlriRegistry nlriReg)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.Update
    parseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint)
    Parse Update message from buffer.
    void
    serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BGPUpdateMessageParser

      public BGPUpdateMessageParser(org.opendaylight.protocol.bgp.parser.spi.AttributeRegistry attrReg, org.opendaylight.protocol.bgp.parser.spi.NlriRegistry nlriReg)
  • Method Details

    • serializeMessage

      public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
      Specified by:
      serializeMessage in interface org.opendaylight.protocol.bgp.parser.spi.MessageSerializer
    • parseMessageBody

      public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.Update parseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException
      Parse Update message from buffer. Calls checkMandatoryAttributesPresence(Update, RevisedErrorHandling) to check for presence of mandatory attributes.
      Specified by:
      parseMessageBody in interface org.opendaylight.protocol.bgp.parser.spi.MessageParser
      Parameters:
      buffer - Encoded BGP message in ByteBuf
      messageLength - Length of the BGP message
      constraint - Peer specific constraints
      Returns:
      Parsed Update message body
      Throws:
      org.opendaylight.protocol.bgp.parser.BGPDocumentedException