-
Notifications
You must be signed in to change notification settings - Fork 19
Addition of nd_multi_cluster_connectivity module and its test file (DCNE-458) #166
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
base: master
Are you sure you want to change the base?
Conversation
inband_epg: ansible-inband | ||
state: present | ||
|
||
- name: Query ND cluster |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
…e and copied module utils nd.py file changes from CiscoDevNet#166 PR
… query for aci cluster
""" | ||
|
||
EXAMPLES = r""" | ||
- name: Create ND cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create -> Connect
plugins/module_utils/nd.py
Outdated
@@ -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: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
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"), |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.