public final class BGPOpenMessageParser extends Object implements org.opendaylight.protocol.bgp.parser.spi.MessageParser, org.opendaylight.protocol.bgp.parser.spi.MessageSerializer
| Constructor and Description |
|---|
BGPOpenMessageParser(org.opendaylight.protocol.bgp.parser.spi.ParameterRegistry reg) |
| Modifier and Type | Method and Description |
|---|---|
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.Open |
parseMessageBody(io.netty.buffer.ByteBuf body,
int messageLength)
Parses given byte array to BGP Open message
|
void |
serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg,
io.netty.buffer.ByteBuf bytes)
Serializes given BGP Open message to byte array, without the header.
|
public static final int TYPE
public static final int AS_TRANS
public BGPOpenMessageParser(org.opendaylight.protocol.bgp.parser.spi.ParameterRegistry reg)
public void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg,
io.netty.buffer.ByteBuf bytes)
serializeMessage in interface org.opendaylight.protocol.bgp.parser.spi.MessageSerializermsg - BGP Open message to be serialized.bytes - ByteBuf where the message will be serializedpublic org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.Open parseMessageBody(io.netty.buffer.ByteBuf body,
int messageLength)
throws org.opendaylight.protocol.bgp.parser.BGPDocumentedException
parseMessageBody in interface org.opendaylight.protocol.bgp.parser.spi.MessageParserbody - byte array representing BGP Open message, without headermessageLength - the length of the messageOpen BGP Open Messageorg.opendaylight.protocol.bgp.parser.BGPDocumentedException - if the parsing was unsuccessfulCopyright © 2018 OpenDaylight. All rights reserved.