This patch fixes to BGPMessage.parser() to return the reference to its own class and to support multiple BGP messages in a single packet.
Signed-off-by: IWASE Yusuke <[email protected]> --- ryu/lib/packet/bgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 6f23b46..c2db40e 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -3553,7 +3553,7 @@ class BGPMessage(packet_base.PacketBase, _TypeDisp): subcls = cls._lookup_type(type_) kwargs = subcls.parser(binmsg) return subcls(marker=marker, len_=len_, type_=type_, - **kwargs), None, rest + **kwargs), cls, rest def serialize(self, payload=None, prev=None): # fixup -- 2.7.4 ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
