kytos / of_core

Kytos Main OpenFlow Network Application (NApp)
MIT License
1 stars 19 forks source link

Create a new event to notify when new flow stats are available #123

Closed italovalcy closed 3 years ago

italovalcy commented 3 years ago

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.

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