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: Rewrite construct_url framework #43441

Merged
merged 1 commit into from
Aug 7, 2018

Conversation

dagwieers
Copy link
Contributor

@dagwieers dagwieers commented Jul 30, 2018

SUMMARY

This functionality was not considered when the module was written, but
there's no reason why it shouldn't be supported.

We had to rework the query string construction and object filtering.
This new functionality allows to filter on arbitrary keys and supports
None values.

This PR also fixes various issues with the existing framework, including
querying specific objects using construct_url_4 (i.e.
aci_epg_to_contract and aci_static_binding_to_epg)

This fixes #43422

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

aci_interface_policy_leaf_policy_group

ANSIBLE VERSION

v2.7

@dagwieers dagwieers added the aci Cisco ACI community label Jul 30, 2018
@dagwieers dagwieers added this to the 2.7.0 milestone Jul 30, 2018
@ansibot
Copy link
Contributor

ansibot commented Jul 30, 2018

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 community_review In order to be merged, this PR must follow the community review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. networking Network category owner_pr This PR is made by the module's maintainer. small_patch support:community This issue/PR relates to code supported by the Ansible community. labels Jul 30, 2018
@ansibot

This comment has been minimized.

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Jul 30, 2018
@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. and removed ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Jul 30, 2018
@ansibot ansibot removed needs_ci This PR requires CI testing to be performed. Please close and re-open this PR to trigger CI. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Jul 30, 2018
@ansibot ansibot added test This PR relates to tests. and removed owner_pr This PR is made by the module's maintainer. labels Jul 30, 2018
@dagwieers dagwieers force-pushed the aci_iplpg_lagt branch 2 times, most recently from 8d425eb to 98c660d Compare July 31, 2018 03:58
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Aug 4, 2018
@dagwieers dagwieers force-pushed the aci_iplpg_lagt branch 2 times, most recently from a543cb6 to 5dbdc3b Compare August 6, 2018 20:07
@dagwieers dagwieers force-pushed the aci_iplpg_lagt branch 7 times, most recently from b786a69 to 6f9f238 Compare August 7, 2018 01:42
@dagwieers dagwieers removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 7, 2018
@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 7, 2018
@dagwieers
Copy link
Contributor Author

dagwieers commented Aug 7, 2018

@jmcgill298 @brunocalogero @schunduri @rsmeyers @smnmtzgr @nilloBE I think this is ready to be merged, but would appreciate more testing.

@dagwieers
Copy link
Contributor Author

bot_skip

@dagwieers dagwieers removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 7, 2018
This functionality was not considered when the module was written, but
there's no reason why it shouldn't be supported.

We had to rework the query string construction and object filtering.
This new functionality allows to filter on arbitrary keys and supports
None values.

This PR fixes various issues with the existing framework, including
querying specific objects using construct_url_4 (i.e.
aci_epg_to_contract and aci_static_binding_to_epg)
@dagwieers
Copy link
Contributor Author

In all my tests the rewrite worked or fixed known issues. So I am going to merge it now.
Please test or let me know if you encounter a regression or change in behaviour you were not expecting.

@dagwieers dagwieers merged commit d8ba8c0 into ansible:devel Aug 7, 2018
@dagwieers dagwieers changed the title ACI: Make querying links and nodes possible ACI: Rewrite construct_url framework Aug 9, 2018
@dagwieers dagwieers added the cisco Cisco technologies label Feb 23, 2019
@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aci Cisco ACI community affects_2.7 This issue/PR affects Ansible v2.7 cisco Cisco technologies feature This issue/PR relates to a feature request. module This issue/PR relates to a module. networking Network category support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aci_interface_policy_leaf_policy_group query with lag_type "link" returns "link" and "node" policy_groups
3 participants