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 -
Constructor Summary
ConstructorsConstructorDescriptionBGPUpdateMessageParser(org.opendaylight.protocol.bgp.parser.spi.AttributeRegistry attrReg, org.opendaylight.protocol.bgp.parser.spi.NlriRegistry nlriReg) -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev200120.UpdateparseMessageBody(io.netty.buffer.ByteBuf buffer, int messageLength, org.opendaylight.protocol.bgp.parser.spi.PeerSpecificParserConstraint constraint) Parse Update message from buffer.voidserializeMessage(org.opendaylight.yangtools.yang.binding.Notification<?> message, io.netty.buffer.ByteBuf bytes)
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
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:
serializeMessagein interfaceorg.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. CallscheckMandatoryAttributesPresence(Update, RevisedErrorHandling)to check for presence of mandatory attributes.- Specified by:
parseMessageBodyin interfaceorg.opendaylight.protocol.bgp.parser.spi.MessageParser- Parameters:
buffer- Encoded BGP message in ByteBufmessageLength- Length of the BGP messageconstraint- Peer specific constraints- Returns:
- Parsed Update message body
- Throws:
org.opendaylight.protocol.bgp.parser.BGPDocumentedException
-