Re: [Ryu-devel] IP_PROTO issue

2016-05-16 Thread Shinpei Muraoka
Hi, > but when I run the app, I get the following error and I don't know how > to solve it. It does not exist ip_proto in the msg.match. Please perform the check by using the if Statements or try Statements. ipproto = None if 'ip_proto' in msg.match: ipproto = msg.match['ip_proto'] Than

[Ryu-devel] IP_PROTO issue

2016-05-16 Thread Aidin Kelki
Hi everyone, I am new in Ryu and I am working on a piece of code to actually get the statistic of packets. @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER) def _packet_in_handler(self, ev): msg = ev.msg datapath = msg.datapath in_port = msg.match['in_p