<div dir="ltr">Hi,<br><br>In my project I need to compare an active flow in the table(obtained from `EventOFPFlowStatsReply`) with a OFPFlowMod message that is sent to the controller.<br><br>I&#39;ve thrown together a method to compare the two but it doesn&#39;t look good. Is there a better way to do this?<br>```<br>def compare_flow_and_flowmsg(flow, msg):<br>    # TODO: this is v hacky, there must be a better way to compare this<br>    return sorted(flow.match.items()) == sorted(msg.match.items()) and\<br>        flow.cookie == msg.cookie and \<br>        all(action1.serialize_body() == action2.serialize_body() for<br>            action1, action2 in<br>            zip(flow.instructions[0].actions, msg.instructions[0].actions))<br>```<br>Thank you.</div>