Skip to content

Commit

Permalink
[ignore_changes] Fixed documentation and examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
anvitha-jain committed Aug 29, 2024
1 parent f1194cf commit 88f761b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
16 changes: 13 additions & 3 deletions plugins/modules/ndo_synce_interface_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
type: int
wait_to_restore:
description:
- The wait to restore of the syncE Interface Policy.
- The delay before attempting to restore synchronization on a SyncE interface after a disruption.
- The value must be an integer between 0 and 12.
- The default value is 5.
type: int
Expand Down Expand Up @@ -98,7 +98,7 @@
wait_to_restore: 5
state: present
- name: Query a syncE interface policy with template_name
- name: Query a syncE interface policy with interface_policy name
cisco.mso.ndo_synce_interface_policy:
host: mso_host
username: admin
Expand All @@ -108,7 +108,7 @@
state: query
register: query_one
- name: Query all syncE interface policy in the template
- name: Query all syncE interface policies in the template
cisco.mso.ndo_synce_interface_policy:
host: mso_host
username: admin
Expand All @@ -117,6 +117,16 @@
state: query
register: query_all
- Query a syncE interface policy with interface_policy uuid
cisco.mso.ndo_synce_interface_policy:
host: mso_host
username: admin
password: SomeSecretPassword
template: ansible_fabric_policy_template
interface_policy_uuid: '{{query_one.current.uuid}}'
state: query
register: query_one_by_uuid
- name: Delete a syncE interface policy
cisco.mso.ndo_synce_interface_policy:
host: mso_host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
state: query
register: query_one

- name: Query all syncE interface policy in the template
- name: Query all syncE interface policies in the template
cisco.mso.ndo_synce_interface_policy:
<<: *mso_info
template: ansible_fabric_policy_template
Expand All @@ -196,7 +196,8 @@

- name: Query a syncE interface policy with interface_policy uuid
cisco.mso.ndo_synce_interface_policy:
<<: *update_synce_interface_policy
<<: *mso_info
template: ansible_fabric_policy_template
interface_policy_uuid: '{{ nm_update_synce_interface_policy.current.uuid }}'
interface_policy: ansible_test_synce_interface_policy_changed
state: query
Expand Down Expand Up @@ -298,8 +299,8 @@
- error_wait_to_restore is failed
- error_wait_to_restore.msg == "MSO Error 400{{':'}} 'WaitToRestore' allowed maximum value is 12"

# # CLEANUP TEMPLATE
# CLEANUP TEMPLATE

# - name: Ensure templates do not exist
# cisco.mso.ndo_template:
# <<: *template_absent
- name: Ensure templates do not exist
cisco.mso.ndo_template:
<<: *template_absent

0 comments on commit 88f761b

Please sign in to comment.