Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

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

Merged
merged 3 commits into from
May 25, 2021
Merged

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

merged 3 commits into from
May 25, 2021

Conversation

italovalcy
Copy link
Contributor

@italovalcy italovalcy commented Apr 25, 2021

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 kytos/flow_manager#124

This PR creates a new event to notify other NApps when new flow statistics are available.

Fixes #122

@cmagnobarbosa cmagnobarbosa self-requested a review April 26, 2021 16:46
@cmagnobarbosa cmagnobarbosa requested review from a team and removed request for a team April 27, 2021 13:48
@cmagnobarbosa cmagnobarbosa requested a review from hdiogenes April 27, 2021 13:56
@hdiogenes hdiogenes changed the title Creating a new event to notify when new flow stats are available Create a new event to notify when new flow stats are available Apr 27, 2021
@hdiogenes hdiogenes requested a review from ajoaoff May 18, 2021 18:24
@hdiogenes hdiogenes merged commit c181d16 into kytos:master May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a New event to notify when new flow statistics is available
3 participants