Skip to content

Commit

Permalink
[ignore] Changed the query using UUID variable name in the module exa…
Browse files Browse the repository at this point in the history
…mples
  • Loading branch information
sajagana committed Jan 10, 2025
1 parent e3d3e5e commit 54af310
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion plugins/modules/ndo_dhcp_option_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
id: 1
data: data_1
state: present
register: create
- name: Query a dhcp option policy with name
cisco.mso.ndo_dhcp_option_policy:
Expand All @@ -104,7 +105,7 @@
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
option_policy_uuid: '{{ query_one.current.uuid }}'
option_policy_uuid: '{{ create.current.uuid }}'
state: query
register: query_uuid
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ndo_dhcp_relay_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
epg: ansible_test_epg_1
ip: 1.1.1.1
state: present
register: create
- name: Query a dhcp relay policy with name
cisco.mso.ndo_dhcp_relay_policy:
Expand All @@ -130,7 +131,7 @@
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
relay_policy_uuid: '{{ query_one.current.uuid }}'
relay_policy_uuid: '{{ create.current.uuid }}'
state: query
register: query_with_uuid
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ndo_l3_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
l3_domain: ansible_test_l3_domain
pool: ansible_test_vlan_pool
state: present
register: create
- name: Query a L3 domain with name
cisco.mso.ndo_l3_domain:
Expand All @@ -86,7 +87,7 @@
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
l3_domain_uuid: '{{ query_one.current.uuid }}'
l3_domain_uuid: '{{ create.current.uuid }}'
state: query
register: query_with_uuid
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ndo_physical_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
physical_domain: ansible_test_physical_domain
pool: ansible_test_vlan_pool
state: present
register: create
- name: Query a physical domain with name
cisco.mso.ndo_physical_domain:
Expand All @@ -86,7 +87,7 @@
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
physical_domain_uuid: '{{ query_one.current.uuid }}'
physical_domain_uuid: '{{ create.current.uuid }}'
state: query
register: query_with_uuid
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ndo_route_map_policy_multicast.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
rp: 1.1.1.2
action: permit
state: present
register: create
- name: Query a multicast route map policy with name
cisco.mso.ndo_route_map_policy_multicast:
Expand All @@ -118,7 +119,7 @@
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
route_map_policy_uuid: '{{ query_one.current.uuid }}'
route_map_policy_uuid: '{{ create.current.uuid }}'
state: query
register: query_with_uuid
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ndo_synce_interface_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
src_priority: 100
wait_to_restore: 5
state: present
register: create
- name: Query a syncE interface policy with interface_policy name
cisco.mso.ndo_synce_interface_policy:
Expand All @@ -123,7 +124,7 @@
username: admin
password: SomeSecretPassword
template: ansible_fabric_policy_template
interface_policy_uuid: '{{ query_one.current.uuid }}'
interface_policy_uuid: '{{ create.current.uuid }}'
state: query
register: query_one_by_uuid
Expand Down
3 changes: 2 additions & 1 deletion plugins/modules/ndo_vlan_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
- from_vlan: 300
to_vlan: 400
state: present
register: create
- name: Query a vlan pool with name
cisco.mso.ndo_vlan_pool:
Expand All @@ -104,7 +105,7 @@
username: admin
password: SomeSecretPassword
template: ansible_tenant_template
vlan_pool_uuid: '{{ query_one.current.uuid }}'
vlan_pool_uuid: '{{ create.current.uuid }}'
state: query
register: query_with_uuid
Expand Down

0 comments on commit 54af310

Please sign in to comment.