'Ryu controller action to switch SDN, not the interface

In the case of Ryu Controller. Let's consider the premise that the controller already knows the MAC addresses of all VLAM hosts. Is there any way, in the case of a single packet arrival, for the controller to install the corresponding flow in the OVS switch table, and after that submit this packet, not directly to the destination interface, but for the switch to match against the table of flows

My goal is to count the traffic of even a single packet. Otherwise the packet and byte counters in the table streams will be zero as there will be no other packets.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source