Class BGPOpenMessageParser

    • Constructor Detail

    • Method Detail

      • serializeMessage

        public 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.
        Specified by:
        serializeMessage in interface MessageSerializer
        msg - BGP Open message to be serialized.
        bytes - ByteBuf where the message will be serialized
      • parseMessageBody

        public Open parseMessageBody​(io.netty.buffer.ByteBuf body,
                                     int messageLength,
                                     PeerSpecificParserConstraint constraint)
                              throws BGPDocumentedException
        Parses given byte array to BGP Open message.
        Specified by:
        parseMessageBody in interface MessageParser
        body - byte array representing BGP Open message, without header
        messageLength - the length of the message
        constraint - Peer specific constraints, implementations may ignore them.
        Open BGP Open Message
        BGPDocumentedException - if the parsing was unsuccessful