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

Deny action support for contracts #326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mpaidipa-aci
Copy link

A new AIM resource ContractSubjectRsFilter is introduced as a child of
ContractSubject, which replaces bifilter, infilter and outfilter fields

Direction field in the resource will control the in,out and bi types, and
action to store permit/deny

Copy link
Contributor

@tbachman tbachman left a comment

Choose a reason for hiding this comment

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

Overall, a really good patch! One minor comment on the DB migration. My only other concern with this is that we've tested the upgrade path. I'd like to see the equivalent GBP patch before deciding to merge this. I'd also prefer to see the successful upgrade of a setup with this change and the corresponding GBP change (i.e. hot-patch and run the migrations, then verify operation).

direction = sa.Column(sa.Enum('bi', 'in', 'out'), primary_key=True)


class ContractSubject(Base):
Copy link
Contributor

Choose a reason for hiding this comment

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

I realize that I suggested doing what you implemented, but I'm reconsidering that - now I'm thinking that any data migrations should be handled by the AIM consumer. They would be responsible for updating the resources to remove the elements from the lists (in, out, and bi) and populating the new resource defined by AIM.

Six new AIM resources are introduced as children of
ContractSubject, which replaces filters and graph fields.
Action field is added to filter to subject relation resources
for the user to configure deny from AIM
@@ -0,0 +1,159 @@
# Copyright (c) 2017 Cisco Systems
# All Rights Reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix the copyright year

@@ -0,0 +1,205 @@
# Copyright (c) 2018 Cisco Systems
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fix the copyright year

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.

3 participants