On Wed, May 11, 2016 at 8:57 PM, <[email protected]> wrote: > :Hi > > I was collecting flow statistics from switches on Ryu. First, the match > field to add flow had only input port and destination MAC address. The > result was as I expected (number of packets = "value", number of bytes = " > value"). Then I changed match field from packet_in to have source MAC, but > the result was changed. It didn't show the flows in the output and when I > typed this command on s1 > ovs-ofctl -O OpenFlow13 dump-flows s1 > > it showed that all packets went to the controller and the flows had zero > packets and zero bytes. Why this happened? > The attachment is a snapshot of the output.
You probably need to add priorities to your flows, OVS will not choose the most specific flow but the first flow that a packet can match, which in this case is the flow that already existed (the send to controller flow). I would rewrite those flows as: priority=10 actions:CONTROLLER:<PORT> priority=20 in_port=2,dl_src=... actions=... priority=20 in_port=3,dl_src=... actions=... This will then only send things to the controller that doesn't match the higher priority flows. Happy Hacking! 7-11 ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
