From 2995ae4ffd950a7d59437d1f5618298723ba67d7 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Wed, 25 Sep 2019 18:29:36 +0200 Subject: [PATCH] Fix MSO examples (#62835) Fix reported issues with the examples. --- lib/ansible/modules/network/aci/mso_schema_site.py | 6 +++--- .../network/aci/mso_schema_site_anp_epg_domain.py | 8 ++++---- .../aci/mso_schema_site_anp_epg_staticleaf.py | 8 ++++---- .../aci/mso_schema_site_anp_epg_staticport.py | 8 ++++---- .../modules/network/aci/mso_schema_site_bd.py | 12 ++++++------ .../modules/network/aci/mso_schema_site_bd_l3out.py | 8 ++++---- .../aci/mso_schema_site_vrf_region_cidr_subnet.py | 12 ++++++------ 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/lib/ansible/modules/network/aci/mso_schema_site.py b/lib/ansible/modules/network/aci/mso_schema_site.py index cfae219ded5..751262f9036 100644 --- a/lib/ansible/modules/network/aci/mso_schema_site.py +++ b/lib/ansible/modules/network/aci/mso_schema_site.py @@ -63,7 +63,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Remove a site from a schema - mso_schema: + mso_schema_site: host: mso_host username: admin password: SomeSecretPassword @@ -74,7 +74,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query a schema site - mso_schema: + mso_schema_site: host: mso_host username: admin password: SomeSecretPassword @@ -86,7 +86,7 @@ EXAMPLES = r''' register: query_result - name: Query all schema sites - mso_schema: + mso_schema_site: host: mso_host username: admin password: SomeSecretPassword diff --git a/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_domain.py b/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_domain.py index 841ab44f755..07bd24373e3 100644 --- a/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_domain.py +++ b/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_domain.py @@ -126,7 +126,7 @@ extends_documentation_fragment: mso EXAMPLES = r''' - name: Add a new static leaf to a site EPG - mso_schema_template_anp_epg_domain: + mso_schema_site_anp_epg_domain: host: mso_host username: admin password: SomeSecretPassword @@ -143,7 +143,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Remove a static leaf from a site EPG - mso_schema_template_anp_epg_domain: + mso_schema_site_anp_epg_domain: host: mso_host username: admin password: SomeSecretPassword @@ -160,7 +160,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query a specific site EPG static leaf - mso_schema_template_anp_epg_domain: + mso_schema_site_anp_epg_domain: host: mso_host username: admin password: SomeSecretPassword @@ -176,7 +176,7 @@ EXAMPLES = r''' register: query_result - name: Query all site EPG static leafs - mso_schema_template_anp_epg_domain: + mso_schema_site_anp_epg_domain: host: mso_host username: admin password: SomeSecretPassword diff --git a/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticleaf.py b/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticleaf.py index 7c031369ad1..022f394a3b4 100644 --- a/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticleaf.py +++ b/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticleaf.py @@ -76,7 +76,7 @@ extends_documentation_fragment: mso EXAMPLES = r''' - name: Add a new static leaf to a site EPG - mso_schema_template_anp_epg_staticleaf: + mso_schema_site_anp_epg_staticleaf: host: mso_host username: admin password: SomeSecretPassword @@ -91,7 +91,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Remove a static leaf from a site EPG - mso_schema_template_anp_epg_staticleaf: + mso_schema_site_anp_epg_staticleaf: host: mso_host username: admin password: SomeSecretPassword @@ -105,7 +105,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query a specific site EPG static leaf - mso_schema_template_anp_epg_staticleaf: + mso_schema_site_anp_epg_staticleaf: host: mso_host username: admin password: SomeSecretPassword @@ -120,7 +120,7 @@ EXAMPLES = r''' register: query_result - name: Query all site EPG static leafs - mso_schema_template_anp_epg_staticleaf: + mso_schema_site_anp_epg_staticleaf: host: mso_host username: admin password: SomeSecretPassword diff --git a/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticport.py b/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticport.py index afc3e56226a..9ba591548bd 100644 --- a/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticport.py +++ b/lib/ansible/modules/network/aci/mso_schema_site_anp_epg_staticport.py @@ -100,7 +100,7 @@ extends_documentation_fragment: mso EXAMPLES = r''' - name: Add a new static port to a site EPG - mso_schema_template_anp_epg_staticport: + mso_schema_site_anp_epg_staticport: host: mso_host username: admin password: SomeSecretPassword @@ -119,7 +119,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Remove a static port from a site EPG - mso_schema_template_anp_epg_staticport: + mso_schema_site_anp_epg_staticport: host: mso_host username: admin password: SomeSecretPassword @@ -136,7 +136,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query a specific site EPG static port - mso_schema_template_anp_epg_staticport: + mso_schema_site_anp_epg_staticport: host: mso_host username: admin password: SomeSecretPassword @@ -154,7 +154,7 @@ EXAMPLES = r''' register: query_result - name: Query all site EPG static ports - mso_schema_template_anp_epg_staticport: + mso_schema_site_anp_epg_staticport: host: mso_host username: admin password: SomeSecretPassword diff --git a/lib/ansible/modules/network/aci/mso_schema_site_bd.py b/lib/ansible/modules/network/aci/mso_schema_site_bd.py index a5533d92a57..02b47d1fd69 100644 --- a/lib/ansible/modules/network/aci/mso_schema_site_bd.py +++ b/lib/ansible/modules/network/aci/mso_schema_site_bd.py @@ -73,8 +73,8 @@ EXAMPLES = r''' state: present delegate_to: localhost -- name: Remove a site VRF - mso_schema_site_vrf: +- name: Remove a site BD + mso_schema_site_bd: host: mso_host username: admin password: SomeSecretPassword @@ -85,8 +85,8 @@ EXAMPLES = r''' state: absent delegate_to: localhost -- name: Query a specific site VRF - mso_schema_site_vrf: +- name: Query a specific site BD + mso_schema_site_bd: host: mso_host username: admin password: SomeSecretPassword @@ -98,8 +98,8 @@ EXAMPLES = r''' delegate_to: localhost register: query_result -- name: Query all site VRFs - mso_schema_site_vrf: +- name: Query all site BDs + mso_schema_site_bd: host: mso_host username: admin password: SomeSecretPassword diff --git a/lib/ansible/modules/network/aci/mso_schema_site_bd_l3out.py b/lib/ansible/modules/network/aci/mso_schema_site_bd_l3out.py index b0405a62a77..d9274a6b40f 100644 --- a/lib/ansible/modules/network/aci/mso_schema_site_bd_l3out.py +++ b/lib/ansible/modules/network/aci/mso_schema_site_bd_l3out.py @@ -64,7 +64,7 @@ extends_documentation_fragment: mso EXAMPLES = r''' - name: Add a new site BD l3out - mso_schema_site_bd: + mso_schema_site_bd_l3out: host: mso_host username: admin password: SomeSecretPassword @@ -77,7 +77,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Remove a site BD l3out - mso_schema_site_vrf: + mso_schema_site_bd_l3out: host: mso_host username: admin password: SomeSecretPassword @@ -90,7 +90,7 @@ EXAMPLES = r''' delegate_to: localhost - name: Query a specific site BD l3out - mso_schema_site_vrf: + mso_schema_site_bd_l3out: host: mso_host username: admin password: SomeSecretPassword @@ -104,7 +104,7 @@ EXAMPLES = r''' register: query_result - name: Query all site BD l3outs - mso_schema_site_vrf: + mso_schema_site_bd_l3out: host: mso_host username: admin password: SomeSecretPassword diff --git a/lib/ansible/modules/network/aci/mso_schema_site_vrf_region_cidr_subnet.py b/lib/ansible/modules/network/aci/mso_schema_site_vrf_region_cidr_subnet.py index 6a8a9ec3821..98a699a50ad 100644 --- a/lib/ansible/modules/network/aci/mso_schema_site_vrf_region_cidr_subnet.py +++ b/lib/ansible/modules/network/aci/mso_schema_site_vrf_region_cidr_subnet.py @@ -92,8 +92,8 @@ EXAMPLES = r''' state: present delegate_to: localhost -- name: Remove a site VRF region CIDR - mso_schema_template_vrf_region_cidr: +- name: Remove a site VRF region CIDR subnet + mso_schema_site_vrf_region_cidr_subnet: host: mso_host username: admin password: SomeSecretPassword @@ -107,8 +107,8 @@ EXAMPLES = r''' state: absent delegate_to: localhost -- name: Query a specific site VRF region CIDR - mso_schema_template_vrf_region_cidr: +- name: Query a specific site VRF region CIDR subnet + mso_schema_site_vrf_region_cidr_subnet: host: mso_host username: admin password: SomeSecretPassword @@ -123,8 +123,8 @@ EXAMPLES = r''' delegate_to: localhost register: query_result -- name: Query all site VRF region CIDR - mso_schema_template_vrf_region_cidr: +- name: Query all site VRF region CIDR subnet + mso_schema_site_vrf_region_cidr_subnet: host: mso_host username: admin password: SomeSecretPassword