From 5cbf1bfa0338c438d7bbd26524b60b86ac2f06d4 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 12 Mar 2019 17:15:09 +0100 Subject: [PATCH] ACI: Fix examples in documentation (stable-2.5) (#52965) --- .../network/aci/aci_encap_pool_range.py | 64 ++++++++++++++----- 1 file changed, 47 insertions(+), 17 deletions(-) diff --git a/lib/ansible/modules/network/aci/aci_encap_pool_range.py b/lib/ansible/modules/network/aci/aci_encap_pool_range.py index 806ba7b2d82..836a620a987 100644 --- a/lib/ansible/modules/network/aci/aci_encap_pool_range.py +++ b/lib/ansible/modules/network/aci/aci_encap_pool_range.py @@ -72,50 +72,80 @@ extends_documentation_fragment: aci ''' EXAMPLES = r''' -- name: Add a new vlan range - aci_vlan_pool_encap_block: +- name: Add a new VLAN pool range + aci_encap_pool_range: host: apic username: admin password: SomeSecretPassword pool: production pool_type: vlan - encap_start: 20 - encap_end: 50 + pool_allocation_mode: static + range_name: anstest + range_start: 20 + range_end: 40 + allocation_mode: inherit state: present -- name: Remove a vlan range - aci_vlan_pool_encap_block: +- name: Remove a VLAN pool range + aci_encap_pool_range: host: apic username: admin password: SomeSecretPassword pool: production pool_type: vlan - encap_start: 20 - encap_end: 50 + pool_allocation_mode: static + range_name: anstest + range_start: 20 + range_end: 40 state: absent -- name: Query a vlan range - aci_vlan_pool_encap_block: +- name: Query a VLAN range + aci_encap_pool_range: host: apic username: admin password: SomeSecretPassword pool: production pool_type: vlan - encap_start: 20 - encap_end: 50 + pool_allocation_mode: static + range_name: anstest + range_start: 20 + range_end: 50 state: query -- name: Query a vlan pool for ranges - aci_vlan_pool_encap_block: +- name: Query a VLAN pool for ranges by range_name + aci_encap_pool_range: + host: apic + username: admin + password: SomeSecretPassword + pool_type: vlan + range_name: anstest + state: query + delegate_to: localhost + register: query_result + +- name: Query a VLAN pool for ranges by range_start + aci_encap_pool_range: + host: apic + username: admin + password: SomeSecretPassword + pool_type: vlan + range_start: 20 + state: query + delegate_to: localhost + register: query_result + +- name: Query a VLAN pool for ranges by range_start and range_end + aci_encap_pool_range: host: apic username: admin password: SomeSecretPassword - pool: production pool_type: vlan + range_start: 20 + range_end: 40 state: query -- name: Query all vlan ranges - aci_vlan_pool_encap_block: +- name: Query all VLAN pool ranges + aci_encap_pool_range: host: apic username: admin password: SomeSecretPassword