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

ACI Contract Subject Labels #310

Closed
markciecior opened this issue Aug 30, 2022 · 4 comments · Fixed by #610
Closed

ACI Contract Subject Labels #310

markciecior opened this issue Aug 30, 2022 · 4 comments · Fixed by #610
Assignees
Labels
enhancement New feature or request

Comments

@markciecior
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

!new_module

  • New module to create/query/delete consumer and provider subject labels under existing contracts

New or Affected Module(s):

  • aci_contract_subject + vz:ConsSubjLbl + vz:ProvSubjLbl

APIC version and APIC Platform

  • V 3.0+ and all.

Collection versions

  • cisco.aci 2.2.0+

References

@markciecior markciecior added the enhancement New feature or request label Aug 30, 2022
@markciecior
Copy link
Author

#309

@akinross
Copy link
Collaborator

Hi @markciecior,

Thank you for your issue raise and contribution. I would like to ask you a few things in regards to your contribution, could you please follow the following documentation/process: https://github.com/shrsr/ansible/blob/devel/docs/docsite/rst/dev_guide/developing_modules_general_aci.rst. This includes creating tests for the developed module.

Besides this I was wondering your exact use-case and if you were aware of the https://github.com/CiscoDevNet/ansible-aci/blob/master/plugins/modules/aci_epg_to_contract.py module. Code wise this could provide some insights for simplification of your code.

Also this raises a question to me if we need a separate module for this functionality or if this can be included into existing module, what are your thoughts on this?

@akinross akinross linked a pull request Aug 31, 2022 that will close this issue
@markciecior
Copy link
Author

Hi @akinross,

I'm aware my contribution doesn't include any tests today. If the use case is deemed legitimate I will add those.

When a subject and/or provider labels are used with contracts, those labels need to be added to the EPG (which is possible using the module above), and to the contract subject. I didn't see any mechanism to add the labels to the contract subject, which is what sent me down this path.

As for folding this into another module, I see the child_classes construct now. That would make more sense than a separate module. I will pursue that path instead. Thanks.

@markciecior
Copy link
Author

I created a new PR using the technique mentioned above in #319.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants