Hi, Description: Added a logging when running in --verbose as truncated packets in packet_in have caused some confusion and this would hopefully help others
pep8: (ryu)Macbook:ryu Benny$ pep8 ryu/app/simple_switch_13.py (ryu)Macbook:ryu Benny$ Has nothing to say ... Signed-off-by: Benjamin Eggerstedt <[email protected]> --- ryu/app/simple_switch_13.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py index 14bf2a4..0e1574f 100644 --- a/ryu/app/simple_switch_13.py +++ b/ryu/app/simple_switch_13.py @@ -60,6 +60,11 @@ class SimpleSwitch13(app_manager.RyuApp): @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER) def _packet_in_handler(self, ev): + # If you hit this you might want to increase + # the "miss_send_length" of your switch + if ev.msg.msg_len < ev.msg.total_len: + self.logger.debug("packet truncated: only %s of %s bytes", + ev.msg.msg_len, ev.msg.total_len) msg = ev.msg datapath = msg.datapath ofproto = datapath.ofproto -- 1.9.3 (Apple Git-50)
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
