Skip to content

Addition of aci_l4l7_policy_based_redirect and related modules (DCNE-391) #751

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

Merged
merged 10 commits into from
May 23, 2025

Conversation

shrsr
Copy link
Collaborator

@shrsr shrsr commented Apr 24, 2025

This PR contains completed aci_l4l7_policy_based_redirect and related modules from #186

@shrsr shrsr self-assigned this Apr 24, 2025
@shrsr shrsr added the jira-sync Sync this issue to Jira label Apr 24, 2025
@github-actions github-actions bot changed the title Addition of aci_l4l7_policy_based_redirect and related modules Addition of aci_l4l7_policy_based_redirect and related modules (DCNE-391) Apr 24, 2025
@shrsr shrsr requested a review from akinross April 29, 2025 16:20
@shrsr shrsr requested a review from gmicol May 5, 2025 16:34
@akinross
Copy link
Collaborator

akinross commented May 6, 2025

importer failures, please check

gmicol
gmicol previously approved these changes May 7, 2025
Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

LGTM

max_threshold:
description:
- The maximum percent when threshold is enabled.
- The APIC defaults to C(0) when unset during creation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we also note the valid range here, 0-100%?

- cisco.aci.aci
- cisco.aci.annotation
- cisco.aci.owner
notes:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't the ip_sla_monitor_policy also exist before using?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We only mention the required attributes or the parent object/top object in the notes section

if state == "present":
child_configs = []
if ip_sla_monitor_policy:
monitor_tdn = "uni/tn-{0}/ipslaMonitoringPol-{1}".format(tenant, ip_sla_monitor_policy)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possible to add an IPSLA monitoring policy from a different tenant? I presume not, but thought of double checking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope!

- cisco.aci.aci
- cisco.aci.annotation
notes:
- The I(tenant), I(device), I(concrete_device), I(concrete_interface) and I(policy) must exist before using this module in your playbook.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is health_group also an object we need to mention here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's a child of vnsSvcRedirectPol so there's no need to mention it here

check_mode: true
register: add_health_group_cm

- name: Add a new Redirect Health Group in check mode
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- name: Add a new Redirect Health Group in check mode
- name: Add a new Redirect Health Group

- "'uni/tn-ansible_tenant/svcCont/redirectHealthGroup-ansible_health_group_2' in query_all.current | map(attribute='vnsRedirectHealthGroup.attributes.dn') | list"

# REMOVE L4-L7 HEALTH GROUP
- name: Remove Redirect Health Group
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- name: Remove Redirect Health Group
- name: Remove Redirect Health Group in check mode

- cisco.aci.annotation
- cisco.aci.owner
notes:
- The I(tenant) must exist before using this module in your playbook.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- The I(tenant) must exist before using this module in your playbook.
- The O(tenant) must exist before using this module in your playbook.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same comment as made on the related PR

gmicol
gmicol previously approved these changes May 12, 2025
Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

LGTM

akinross
akinross previously approved these changes May 15, 2025
Copy link
Collaborator

@akinross akinross left a comment

Choose a reason for hiding this comment

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

LGTM

anvitha-jain
anvitha-jain previously approved these changes May 15, 2025
Copy link
Collaborator

@anvitha-jain anvitha-jain left a comment

Choose a reason for hiding this comment

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

LGTM

gmicol
gmicol previously approved these changes May 19, 2025
Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

LGTM

samiib
samiib previously approved these changes May 21, 2025
Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

lhercot
lhercot previously approved these changes May 23, 2025
Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

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

LGTM

- module: cisco.aci.aci_l4l7_concrete_interface
- module: cisco.aci.aci_l4l7_policy_based_redirect
- name: APIC Management Information Model reference
description: More information about the internal APIC class B(vns:RedirectDest)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
description: More information about the internal APIC class B(vns:RedirectDest)
description: More information about the internal APIC class B(vns:RedirectDest), B(vns:L1L2RedirectDest)

sajagana
sajagana previously approved these changes May 23, 2025
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

@shrsr shrsr dismissed stale reviews from gmicol, lhercot, akinross, anvitha-jain, sajagana, and samiib via 5b48277 May 23, 2025 16:12
Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

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

LGTM

@lhercot lhercot merged commit ec3f468 into CiscoDevNet:master May 23, 2025
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-sync Sync this issue to Jira
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants