Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ignore_changes] Fixed documentation and examples.
Browse files Browse the repository at this point in the history
anvitha-jain committed Aug 29, 2024
1 parent f1194cf commit 3d9f3a5
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
@@ -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
@@ -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
@@ -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
@@ -117,6 +117,16 @@
state: query
register: query_all
- name: 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: uuid
state: query
register: query_one_by_uuid
- name: Delete a syncE interface policy
cisco.mso.ndo_synce_interface_policy:
host: mso_host
Original file line number Diff line number Diff line change
@@ -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
@@ -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
@@ -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 3d9f3a5

Please sign in to comment.