-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add support for REMOVE_BUCKET operation in group #45
base: main
Are you sure you want to change the base?
Add support for REMOVE_BUCKET operation in group #45
Conversation
44b5063
to
19fcf3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add test code for your new logic.
@@ -11,3 +11,4 @@ | |||
|
|||
.idea/ | |||
.vscode/ | |||
vendor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why adds this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I run command go mod vendor
in this project by accident and found that this project doesn't ignore this directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But no directory named as "vendor" exists in this repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Antrea, we also ignore this directory.
} else if command == openflow15.OFPGC_REMOVE_BUCKET { | ||
// In a request of type OFPGC_REMOVE_BUCKET, the CommandBucketId field is used to specify the identifier of the | ||
// bucket to remove from current action bucket list. | ||
groupMod.CommandBucketId = self.Buckets[0].BucketId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it mean a single bucket can be removed in one OFPGC_REMOVE_BUCKET request? Is it possible to remove multiple buckets in a request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the document of Openflow 1.5, it cannot.
Please handle the golangci failure https://github.com/antrea-io/ofnet/actions/runs/3935221079/jobs/6730710061 , although it may not be introduced by your change. |
d777cbc
to
49d9586
Compare
This PR also upgrades golangci-lint version to v1.50.0 and fix some fmt issues. Signed-off-by: Hongliang Liu <[email protected]>
49d9586
to
e8f71cb
Compare
Done |
Add parameter `NewGroup` to decide whether to use cache in OFSwitch when create a group. Signed-off-by: Hongliang Liu <[email protected]>
Signed-off-by: Hongliang Liu [email protected]