From 6906a3e86793ba7f4e8a076c950370e54f65e752 Mon Sep 17 00:00:00 2001 From: Gaspard Micol Date: Tue, 24 Oct 2023 13:48:37 -0400 Subject: [PATCH] [ignore] Update the examples in match rules modules. --- plugins/modules/aci_match_as_path_regex_term.py | 8 ++++---- plugins/modules/aci_match_community_factor.py | 8 ++++---- plugins/modules/aci_match_community_regex_term.py | 8 ++++---- plugins/modules/aci_match_community_term.py | 8 ++++---- .../targets/aci_match_route_destination/tasks/main.yml | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/plugins/modules/aci_match_as_path_regex_term.py b/plugins/modules/aci_match_as_path_regex_term.py index a1779bb4d..bb87acaa5 100644 --- a/plugins/modules/aci_match_as_path_regex_term.py +++ b/plugins/modules/aci_match_as_path_regex_term.py @@ -72,7 +72,7 @@ EXAMPLES = r""" - name: Create a match with AS-path regex term - cisco.aci.match_as_path_regex_term: + cisco.aci.aci_match_as_path_regex_term: host: apic username: admin password: SomeSecretPassword @@ -84,7 +84,7 @@ delegate_to: localhost - name: Delete a match with AS-path regex term - cisco.aci.match_as_path_regex_term: + cisco.aci.aci_match_as_path_regex_term: host: apic username: admin password: SomeSecretPassword @@ -95,7 +95,7 @@ delegate_to: localhost - name: Query all match with AS-path regex terms - cisco.aci.match_as_path_regex_term: + cisco.aci.aci_match_as_path_regex_term: host: apic username: admin password: SomeSecretPassword @@ -104,7 +104,7 @@ register: query_result - name: Query a specific match with AS-path regex term - cisco.aci.match_as_path_regex_term: + cisco.aci.aci_match_as_path_regex_term: host: apic username: admin password: SomeSecretPassword diff --git a/plugins/modules/aci_match_community_factor.py b/plugins/modules/aci_match_community_factor.py index 7be352159..8db4e6e71 100644 --- a/plugins/modules/aci_match_community_factor.py +++ b/plugins/modules/aci_match_community_factor.py @@ -80,7 +80,7 @@ EXAMPLES = r""" - name: Create a match match AS-path regex term - cisco.aci.match_community_term: + cisco.aci.aci_match_community_factor: host: apic username: admin password: SomeSecretPassword @@ -93,7 +93,7 @@ delegate_to: localhost - name: Delete a match match AS-path regex term - cisco.aci.match_community_term: + cisco.aci.aci_match_community_factor: host: apic username: admin password: SomeSecretPassword @@ -105,7 +105,7 @@ delegate_to: localhost - name: Query all match AS-path regex terms - cisco.aci.match_community_term: + cisco.aci.aci_match_community_factor: host: apic username: admin password: SomeSecretPassword @@ -114,7 +114,7 @@ register: query_result - name: Query a specific match match AS-path regex term - cisco.aci.match_community_term: + cisco.aci.aci_match_community_factor: host: apic username: admin password: SomeSecretPassword diff --git a/plugins/modules/aci_match_community_regex_term.py b/plugins/modules/aci_match_community_regex_term.py index 2bbd89886..1b2d0007a 100644 --- a/plugins/modules/aci_match_community_regex_term.py +++ b/plugins/modules/aci_match_community_regex_term.py @@ -79,7 +79,7 @@ EXAMPLES = r""" - name: Create a match with comunity regex term - cisco.aci.match_community_regex_term: + cisco.aci.aci_match_community_regex_term: host: apic username: admin password: SomeSecretPassword @@ -92,7 +92,7 @@ delegate_to: localhost - name: Delete a match with comunity regex term - cisco.aci.match_community_regex_term: + cisco.aci.aci_match_community_regex_term: host: apic username: admin password: SomeSecretPassword @@ -103,7 +103,7 @@ delegate_to: localhost - name: Query all match with commmuntiy regex terms - cisco.aci.match_community_regex_term: + cisco.aci.aci_match_community_regex_term: host: apic username: admin password: SomeSecretPassword @@ -112,7 +112,7 @@ register: query_result - name: Query a specific match with comunity regex term - cisco.aci.match_community_regex_term: + cisco.aci.aci_match_community_regex_term: host: apic username: admin password: SomeSecretPassword diff --git a/plugins/modules/aci_match_community_term.py b/plugins/modules/aci_match_community_term.py index f5357792e..21a3f35db 100644 --- a/plugins/modules/aci_match_community_term.py +++ b/plugins/modules/aci_match_community_term.py @@ -68,7 +68,7 @@ EXAMPLES = r""" - name: Create a match with community term - cisco.aci.match_community_term: + cisco.aci.aci_match_community_term: host: apic username: admin password: SomeSecretPassword @@ -79,7 +79,7 @@ delegate_to: localhost - name: Delete a match with community term - cisco.aci.match_community_term: + cisco.aci.aci_match_community_term: host: apic username: admin password: SomeSecretPassword @@ -90,7 +90,7 @@ delegate_to: localhost - name: Query all with community terms - cisco.aci.match_community_term: + cisco.aci.aci_match_community_term: host: apic username: admin password: SomeSecretPassword @@ -99,7 +99,7 @@ register: query_result - name: Query a specific match with community term - cisco.aci.match_community_term: + cisco.aci.aci_match_community_term: host: apic username: admin password: SomeSecretPassword diff --git a/tests/integration/targets/aci_match_route_destination/tasks/main.yml b/tests/integration/targets/aci_match_route_destination/tasks/main.yml index bea0ce0dd..b4d49c2ff 100644 --- a/tests/integration/targets/aci_match_route_destination/tasks/main.yml +++ b/tests/integration/targets/aci_match_route_destination/tasks/main.yml @@ -57,8 +57,8 @@ description: match route destination rule 1 for ansible_match_rule match rule profile ip: 11.11.11.11/24 aggregate: yes - from_prefix_lenght: 0 - to_prefix_lenght: 32 + from_prefix_length: 0 + to_prefix_length: 32 state: present check_mode: true register: cm_add_match_route_destination