Below two methods i am using in QoS routing application : method 1: def _send_echo_request(self,datapath): for datapath in self.datapaths.values(): ofproto = datapath.ofproto parser = datapath.ofproto_parser data = "%.6f" % time.time() echo_req = parser.OFPEchoRequest(datapath, data=data) datapath.send_msg(echo_req))
method 2: @set_ev_cls(ofp_event.EventOFPEchoReply, MAIN_DISPATCHER) def echo_reply_handler(self, ev): try: print(ev.msg.data) latency = time.time() - eval(ev.msg.data) self.echo_latency[ev.msg.datapath.id] = latency except: print("in exception") return In the mininet both works perfectly but while i am using in Zodiac Fx switches in the echo_reply_handler() method i am not getting data value which is passed by method 1 it shows exception. How to trace or debug event base method? Using print I have debug the code . While i print echo_req in method 1 it sends the data value which is time but in the reply method it is not getting in physical switch test bed environment. I am not getting any idea regarding this... -- Thanks & Regards, Ramani Sagar V. G.E.S Class - II, Govt Of Gujarat, India.
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel