Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Added support for force option when sending flow mods #50

Merged
merged 20 commits into from
Dec 8, 2021

Conversation

viniarck
Copy link
Member

@viniarck viniarck commented Nov 17, 2021

Fixes #46

Description of the change

  • Added support for force option when sending flow mods

2021-11-17-152552_930x697_scrot

Once this change lands, clients can decide reliably if they want to force the flow mode to be sent later on (via consistency check) in case any switch connection errors happened as the flows were being installed. So, it's up to each client to decide if the client wants the flows to be either forced or not, for example, if mef_eline wants the flows being installed or fail immediately in case a switch isn't connected, then set force: false, for applications that don't care when the flow should be installed, and there's no other potential paths that the client could make of use then setting force: true would be handy.

Notice that errors could still happen even when force: true is set (for instance, imagine a client sends a flow mod with force true, the switch isn't available and then the installation has an unsupported instruction for that switch), the rest of error propagation, and more tests for this, will be covered on issue #2.

@viniarck
Copy link
Member Author

thanks for reviewing @ajoaoff, I'll merge this once PR #49 lands since it's on top of it.

Copy link

@italovalcy italovalcy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Base automatically changed from fix/switch_not_connected_2 to master December 8, 2021 14:47
@viniarck
Copy link
Member Author

viniarck commented Dec 8, 2021

Appreciated the reviews, guys.

@viniarck viniarck merged commit 69a2a33 into master Dec 8, 2021
@viniarck viniarck deleted the feature/force_option_2 branch December 8, 2021 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a force option when pushing flow mods (issue 26 part 2)
3 participants