Class BGPRouteRefreshMessageParser

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

public final class BGPRouteRefreshMessageParser extends Object implements org.opendaylight.protocol.bgp.parser.spi.MessageParser, org.opendaylight.protocol.bgp.parser.spi.MessageSerializer
  • Field Summary

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

    Constructors
    Constructor
    Description
    BGPRouteRefreshMessageParser(org.opendaylight.protocol.bgp.parser.spi.AddressFamilyRegistry afiReg, org.opendaylight.protocol.bgp.parser.spi.SubsequentAddressFamilyRegistry safiReg)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.RouteRefresh
    parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint)
    Parses BGP Route Refresh message to bytes.
    void
    serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
    Serializes BGP Route Refresh message.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • BGPRouteRefreshMessageParser

      public BGPRouteRefreshMessageParser(org.opendaylight.protocol.bgp.parser.spi.AddressFamilyRegistry afiReg, org.opendaylight.protocol.bgp.parser.spi.SubsequentAddressFamilyRegistry safiReg)
  • Method Details

    • serializeMessage

      public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
      Serializes BGP Route Refresh message.
      Specified by:
      serializeMessage in interface org.opendaylight.protocol.bgp.parser.spi.MessageSerializer
      Parameters:
      message - to be serialized
      bytes - ByteBuf where the message will be serialized
    • parseMessageBody

      public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.RouteRefresh parseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException
      Parses BGP Route Refresh message to bytes.
      Specified by:
      parseMessageBody in interface org.opendaylight.protocol.bgp.parser.spi.MessageParser
      Parameters:
      body - ByteBuf to be parsed
      messageLength - the length of the message
      Returns:
      RouteRefresh which represents BGP notification message
      Throws:
      org.opendaylight.protocol.bgp.parser.BGPDocumentedException - if parsing goes wrong