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

Extract flow rule checker from FlowRule #234

Merged
merged 2 commits into from
Nov 14, 2018
Merged

Conversation

sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Nov 9, 2018

Describe what this PR does / why we need it

Extract flow rule checker from passCheck logic of legacy FlowRule to make the checking logic more clear.

Does this pull request fix one issue?

Related to #56

Describe how you did it

  • Extract flow rule checker from passCheck logic of legacy FlowRule
  • Remove redundant code in logic about selecting nodes
  • Refactor FlowSlot (some logic moved from FlowRuleManager)
  • Rename Controller to TrafficShapingController to make it clear
  • Update test cases for flow rule checker and slot

Describe how to verify it

See test cases.

Special notes for reviews

None.

- Extract flow rule checker from legacy `passCheck`
- Remove redundant code
- Refactor FlowSlot (some logic moved from FlowRuleManager)
- Rename `Controller` to `TrafficShapingController`

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added this to the 1.4.0 milestone Nov 9, 2018
@sczyh30 sczyh30 added the to-review To review label Nov 9, 2018
@sczyh30 sczyh30 force-pushed the enhancement/flow-checker branch from 7503541 to 2953adc Compare November 12, 2018 03:45
Copy link
Contributor

@CarpenterLee CarpenterLee left a comment

Choose a reason for hiding this comment

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

LGTM

@sczyh30 sczyh30 merged commit 1ca28d8 into master Nov 14, 2018
@sczyh30 sczyh30 removed the to-review To review label Nov 14, 2018
@sczyh30 sczyh30 deleted the enhancement/flow-checker branch November 14, 2018 06:52
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.

2 participants