Currently, of_core updates the flow statistics periodically based on the settings.STATS_INTERVAL, and there is no way to notify other NApps that new statistics are available. This can cause an inconsistent view of the switch's flow table if any other NApp uses switch.flows after a while since last received stats.
Currently, of_core updates the flow statistics periodically based on the
settings.STATS_INTERVAL
, and there is no way to notify other NApps that new statistics are available. This can cause an inconsistent view of the switch's flow table if any other NApp usesswitch.flows
after a while since last received stats.An example of such inconsistency is the flow_manager consistency check routine, as discussed in https://github.com/kytos/flow_manager/issues/124
This PR creates a new event to notify other NApps when new flow statistics are available.
Fixes #122