|
|
@ -72,50 +72,80 @@ extends_documentation_fragment: aci
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = r'''
|
|
|
|
EXAMPLES = r'''
|
|
|
|
- name: Add a new vlan range
|
|
|
|
- name: Add a new VLAN pool range
|
|
|
|
aci_vlan_pool_encap_block:
|
|
|
|
aci_encap_pool_range:
|
|
|
|
host: apic
|
|
|
|
host: apic
|
|
|
|
username: admin
|
|
|
|
username: admin
|
|
|
|
password: SomeSecretPassword
|
|
|
|
password: SomeSecretPassword
|
|
|
|
pool: production
|
|
|
|
pool: production
|
|
|
|
pool_type: vlan
|
|
|
|
pool_type: vlan
|
|
|
|
encap_start: 20
|
|
|
|
pool_allocation_mode: static
|
|
|
|
encap_end: 50
|
|
|
|
range_name: anstest
|
|
|
|
|
|
|
|
range_start: 20
|
|
|
|
|
|
|
|
range_end: 40
|
|
|
|
|
|
|
|
allocation_mode: inherit
|
|
|
|
state: present
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove a vlan range
|
|
|
|
- name: Remove a VLAN pool range
|
|
|
|
aci_vlan_pool_encap_block:
|
|
|
|
aci_encap_pool_range:
|
|
|
|
host: apic
|
|
|
|
host: apic
|
|
|
|
username: admin
|
|
|
|
username: admin
|
|
|
|
password: SomeSecretPassword
|
|
|
|
password: SomeSecretPassword
|
|
|
|
pool: production
|
|
|
|
pool: production
|
|
|
|
pool_type: vlan
|
|
|
|
pool_type: vlan
|
|
|
|
encap_start: 20
|
|
|
|
pool_allocation_mode: static
|
|
|
|
encap_end: 50
|
|
|
|
range_name: anstest
|
|
|
|
|
|
|
|
range_start: 20
|
|
|
|
|
|
|
|
range_end: 40
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
|
|
|
|
- name: Query a vlan range
|
|
|
|
- name: Query a VLAN range
|
|
|
|
aci_vlan_pool_encap_block:
|
|
|
|
aci_encap_pool_range:
|
|
|
|
host: apic
|
|
|
|
host: apic
|
|
|
|
username: admin
|
|
|
|
username: admin
|
|
|
|
password: SomeSecretPassword
|
|
|
|
password: SomeSecretPassword
|
|
|
|
pool: production
|
|
|
|
pool: production
|
|
|
|
pool_type: vlan
|
|
|
|
pool_type: vlan
|
|
|
|
encap_start: 20
|
|
|
|
pool_allocation_mode: static
|
|
|
|
encap_end: 50
|
|
|
|
range_name: anstest
|
|
|
|
|
|
|
|
range_start: 20
|
|
|
|
|
|
|
|
range_end: 50
|
|
|
|
state: query
|
|
|
|
state: query
|
|
|
|
|
|
|
|
|
|
|
|
- name: Query a vlan pool for ranges
|
|
|
|
- name: Query a VLAN pool for ranges by range_name
|
|
|
|
aci_vlan_pool_encap_block:
|
|
|
|
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
|
|
|
|
host: apic
|
|
|
|
username: admin
|
|
|
|
username: admin
|
|
|
|
password: SomeSecretPassword
|
|
|
|
password: SomeSecretPassword
|
|
|
|
pool: production
|
|
|
|
|
|
|
|
pool_type: vlan
|
|
|
|
pool_type: vlan
|
|
|
|
|
|
|
|
range_start: 20
|
|
|
|
|
|
|
|
range_end: 40
|
|
|
|
state: query
|
|
|
|
state: query
|
|
|
|
|
|
|
|
|
|
|
|
- name: Query all vlan ranges
|
|
|
|
- name: Query all VLAN pool ranges
|
|
|
|
aci_vlan_pool_encap_block:
|
|
|
|
aci_encap_pool_range:
|
|
|
|
host: apic
|
|
|
|
host: apic
|
|
|
|
username: admin
|
|
|
|
username: admin
|
|
|
|
password: SomeSecretPassword
|
|
|
|
password: SomeSecretPassword
|
|
|
|