Skip to content

Conversation

shrsr
Copy link
Collaborator

@shrsr shrsr commented Aug 11, 2025

No description provided.

@shrsr shrsr changed the title Addition of nd_multi_cluster_connectivity module and its test file Addition of nd_multi_cluster_connectivity module and its test file (DCNE-458) Aug 11, 2025
inband_epg: ansible-inband
state: present

- name: Query ND cluster
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add query example for ACI cluster as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok

state: query
register: query_result

- name: Query all the clusters
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Implement separate query all for ND clusters and aci clusters in the info module

sajagana added a commit to sajagana/ansible-nd that referenced this pull request Aug 18, 2025
@shrsr shrsr requested review from anvitha-jain and sajagana August 18, 2025 18:27
"""

EXAMPLES = r"""
- name: Create ND cluster
Copy link
Collaborator

Choose a reason for hiding this comment

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

Create -> Connect

@@ -516,6 +523,7 @@ def get_diff(self, unwanted=None):
del existing[key]
except KeyError:
pass
if key in sent:
try:
del sent[key]
except KeyError:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need this try/except on KeyError after adding the key check above?

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. Changed it..

description:
- The out-of-band management configuration for the cluster.
type: str
orchestration:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you need this option? It appears orchestration in the features list is used instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not required anymore!

license_tier=dict(type="str", choices=["advantage", "essentials", "premier"]),
features=dict(type="list", elements="str", choices=["telemetry", "orchestration"]),
inband_epg=dict(type="str"),
outband=dict(type="str"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this option used anywhere?

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!

choices: [ telemetry, orchestration ]
inband_epg:
description:
- The in-band EPG (Endpoint Group) for the cluster.
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 in-band EPG (Endpoint Group) for the cluster.
- The in-band EPG (Endpoint Group) for the cluster.
- This option is only used when C(telemetry) is enabled in O(features).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks

@shrsr shrsr requested review from anvitha-jain and samiib August 19, 2025 18:01
license_tier=dict(type="str", choices=["advantage", "essentials", "premier"]),
features=dict(type="list", elements="str", choices=["telemetry", "orchestration"]),
inband_epg=dict(type="str"),
orchestration=dict(type="bool"),
Copy link
Collaborator

@gmicol gmicol Aug 19, 2025

Choose a reason for hiding this comment

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

Orchestration attribute probably needs to be removed from argument_spec?

@shrsr shrsr requested a review from gmicol August 20, 2025 15:06
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

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

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

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

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!

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.

6 participants