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 -
Constructor Summary
ConstructorsConstructorDescriptionBGPRouteRefreshMessageParser(org.opendaylight.protocol.bgp.parser.spi.AddressFamilyRegistry afiReg, org.opendaylight.protocol.bgp.parser.spi.SubsequentAddressFamilyRegistry safiReg) -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.RouteRefreshparseMessageBody(io.netty.buffer.ByteBuf body, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) Parses BGP Route Refresh message to bytes.voidserializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes) Serializes BGP Route Refresh message.
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
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:
serializeMessagein interfaceorg.opendaylight.protocol.bgp.parser.spi.MessageSerializer- Parameters:
message- to be serializedbytes- 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:
parseMessageBodyin interfaceorg.opendaylight.protocol.bgp.parser.spi.MessageParser- Parameters:
body- ByteBuf to be parsedmessageLength- the length of the message- Returns:
RouteRefreshwhich represents BGP notification message- Throws:
org.opendaylight.protocol.bgp.parser.BGPDocumentedException- if parsing goes wrong
-