From 88f761b715e2415b3ddf62f5a30961cf4ba6c780 Mon Sep 17 00:00:00 2001 From: anvitha-jain Date: Thu, 29 Aug 2024 08:31:30 -0700 Subject: [PATCH] [ignore_changes] Fixed documentation and examples. --- plugins/modules/ndo_synce_interface_policy.py | 16 +++++++++++++--- .../ndo_synce_interface_policy/tasks/main.yml | 13 +++++++------ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/plugins/modules/ndo_synce_interface_policy.py b/plugins/modules/ndo_synce_interface_policy.py index ffd0baf9..5bf01194 100644 --- a/plugins/modules/ndo_synce_interface_policy.py +++ b/plugins/modules/ndo_synce_interface_policy.py @@ -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 +- 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 diff --git a/tests/integration/targets/ndo_synce_interface_policy/tasks/main.yml b/tests/integration/targets/ndo_synce_interface_policy/tasks/main.yml index 9abe783b..e0e3a1db 100644 --- a/tests/integration/targets/ndo_synce_interface_policy/tasks/main.yml +++ b/tests/integration/targets/ndo_synce_interface_policy/tasks/main.yml @@ -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 \ No newline at end of file + - name: Ensure templates do not exist + cisco.mso.ndo_template: + <<: *template_absent \ No newline at end of file