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

acl add/delete code isn't handling external_ids correctly #124

Open
anfredette opened this issue Jan 5, 2021 · 1 comment
Open

acl add/delete code isn't handling external_ids correctly #124

anfredette opened this issue Jan 5, 2021 · 1 comment

Comments

@anfredette
Copy link
Contributor

anfredette commented Jan 5, 2021

external_ids should be ignored while checking for duplicates in ACLAdd and matching in ACLDel

The parameters that define a unique ACL for a given entity (logical switch or port group) are direction, match, and priority. The code currently also attempts to also use external_ids, but it should not.

anfredette added a commit to anfredette/go-ovn that referenced this issue Jan 5, 2021
 acl add/delete code isn't handling "nil" for external_ids correctly

Also, fix typo in name of oMapContians() to oMapContains()

Signed-off-by: Andre Fredette <afredette@redhat.com>
anfredette added a commit to anfredette/go-ovn that referenced this issue Jan 6, 2021
Signed-off-by: Andre Fredette <afredette@redhat.com>
anfredette added a commit to anfredette/go-ovn that referenced this issue Jan 6, 2021
Signed-off-by: Andre Fredette <afredette@redhat.com>

More testing.

Signed-off-by: Andre Fredette <afredette@redhat.com>
anfredette added a commit to anfredette/go-ovn that referenced this issue Jan 6, 2021
Signed-off-by: Andre Fredette <afredette@redhat.com>
@anfredette anfredette changed the title acl add/delete code isn't handling "nil" for external_ids correctly acl add/delete code isn't handling external_ids correctly Jan 7, 2021
anfredette added a commit to anfredette/go-ovn that referenced this issue Jan 7, 2021
… correctly

See eBay#124 for details

Signed-off-by: Andre Fredette <afredette@redhat.com>
@anfredette
Copy link
Contributor Author

I updated the description based on a discussion with @hzhou8 on the desired behavior.

anfredette added a commit to anfredette/go-ovn that referenced this issue Jan 13, 2021
… correctly

eBay#124

external_ids should be ignored while checking for duplicates in ACLAdd and
matching in ACLDel

The parameters that define a unique ACL for a given entity (logical switch or
port group) are direction, match, and priority. The code currently also
attempts to also use external_ids, but it should not.

Signed-off-by: Andre Fredette <afredette@redhat.com>
anfredette added a commit to anfredette/go-ovn that referenced this issue Jan 13, 2021
… correctly

eBay#124

external_ids should be ignored while checking for duplicates in ACLAdd

The parameters that define a unique ACL for a given entity (logical switch or
port group) are direction, match, and priority. The code currently also
attempts to also use external_ids, but it should not.

Signed-off-by: Andre Fredette <afredette@redhat.com>
hzhou8 added a commit that referenced this issue Jan 14, 2021
Fix issue #124: acl add/delete code isn't handling external_ids correctly
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

No branches or pull requests

1 participant