Skip to content

Commit

Permalink
[ignore] Removed unused imports from ndo_l3out_node_routing_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
sajagana authored and lhercot committed Oct 18, 2024
1 parent c295c53 commit f166c1a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions plugins/modules/ndo_l3out_node_routing_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
aliases: [ l3out_node_routing_policy_name ]
uuid:
description:
- The uuid of the L3Out Node Routing Policy.
- The UUID of the L3Out Node Routing Policy.
- This parameter is required when the O(name) needs to be updated.
type: str
aliases: [ l3out_node_routing_policy_uuid ]
Expand Down Expand Up @@ -194,7 +194,7 @@
state: query
register: query_with_name
- name: Query a L3Out Node Routing Policies with uuid
- name: Query a L3Out Node Routing Policies with UUID
cisco.mso.ndo_l3out_node_routing_policy:
host: mso_host
username: admin
Expand Down Expand Up @@ -239,7 +239,7 @@
import copy
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cisco.mso.plugins.module_utils.mso import MSOModule, mso_argument_spec
from ansible_collections.cisco.mso.plugins.module_utils.template import MSOTemplate, KVPair
from ansible_collections.cisco.mso.plugins.module_utils.template import MSOTemplate


def main():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,15 +438,15 @@
- query_with_name.current.name == "nrp_1_update"
- query_with_name.current.uuid is defined

- name: Query L3Out Node Routing Policy with uuid
- name: Query L3Out Node Routing Policy with UUID
cisco.mso.ndo_l3out_node_routing_policy:
<<: *mso_info
uuid: "{{ query_with_name.current.uuid }}"
template: '{{ ansible_tenant_template | default("ansible_test") }}'
state: query
register: query_with_uuid

- name: Assertion check for query L3Out Node Routing Policy with uuid
- name: Assertion check for query L3Out Node Routing Policy with UUID
ansible.builtin.assert:
that:
- query_with_uuid is not changed
Expand Down Expand Up @@ -477,7 +477,7 @@
- query_all is not changed
- query_all.current | length == 3

- name: Clear nrp_1_update L3Out Node Routing Policy bfd_multi_hop_settings with uuid
- name: Clear nrp_1_update L3Out Node Routing Policy bfd_multi_hop_settings with UUID
cisco.mso.ndo_l3out_node_routing_policy:
<<: *mso_info
template: '{{ ansible_tenant_template | default("ansible_test") }}'
Expand All @@ -487,7 +487,7 @@
state: present
register: clear_bfd_settings

- name: Assertion check for clear nrp_1_update L3Out Node Routing Policy bfd_multi_hop_settings with uuid
- name: Assertion check for clear nrp_1_update L3Out Node Routing Policy bfd_multi_hop_settings with UUID
ansible.builtin.assert:
that:
- clear_bfd_settings is changed
Expand Down Expand Up @@ -515,7 +515,7 @@
- clear_bfd_settings.previous.name == "nrp_1_update"
- clear_bfd_settings.previous.uuid is defined

- name: Clear nrp_1_update L3Out Node Routing Policy bgp_node_settings with uuid
- name: Clear nrp_1_update L3Out Node Routing Policy bgp_node_settings with UUID
cisco.mso.ndo_l3out_node_routing_policy:
<<: *mso_info
template: '{{ ansible_tenant_template | default("ansible_test") }}'
Expand All @@ -525,7 +525,7 @@
state: present
register: clear_bgp_settings

- name: Assertion check for clear nrp_1_update L3Out Node Routing Policy bgp_node_settings with uuid
- name: Assertion check for clear nrp_1_update L3Out Node Routing Policy bgp_node_settings with UUID
ansible.builtin.assert:
that:
- clear_bgp_settings is changed
Expand Down Expand Up @@ -689,7 +689,7 @@
- query_with_invalid_name is not changed
- query_with_invalid_name.current == {}

- name: Query L3Out Node Routing Policy with invalid uuid
- name: Query L3Out Node Routing Policy with invalid UUID
cisco.mso.ndo_l3out_node_routing_policy:
<<: *mso_info
uuid: "xyz"
Expand All @@ -698,7 +698,7 @@
register: query_with_invalid_uuid
ignore_errors: true

- name: Assertion check for query L3Out Node Routing Policy with invalid uuid
- name: Assertion check for query L3Out Node Routing Policy with invalid UUID
ansible.builtin.assert:
that:
- query_with_invalid_uuid is not changed
Expand Down Expand Up @@ -782,15 +782,15 @@
- nm_rm_with_name_again.current == {}
- nm_rm_with_name_again.previous == {}

- name: Remove a L3Out Node Routing Policy with uuid
- name: Remove a L3Out Node Routing Policy with UUID
cisco.mso.ndo_l3out_node_routing_policy:
<<: *mso_info
template: '{{ ansible_tenant_template | default("ansible_test") }}'
uuid: "{{ query_nrp_4_update.current.uuid }}"
state: absent
register: remove_with_uuid

- name: Assertion check for remove L3Out Node Routing Policy with uuid
- name: Assertion check for remove L3Out Node Routing Policy with UUID
ansible.builtin.assert:
that:
- remove_with_uuid is changed
Expand Down

0 comments on commit f166c1a

Please sign in to comment.