Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/aci/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/aci/aci_vlan_pool_encap_block.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys�
---
module: aci_vlan_pool_encap_block
short_description: Manage encap blocks assigned to VLAN pools (fvns:EncapBlk)
description:
- Manage VLAN encap blocks that are assigned to VLAN pools on Cisco ACI fabrics.
version_added: '2.5'
options:
  allocation_mode:
    description:
    - The method used for allocating encaps to resources.
    type: str
    choices: [ dynamic, inherit, static]
    aliases: [ mode ]
  description:
    description:
    - Description for the pool encap block.
    type: str
    aliases: [ descr ]
  pool:
    description:
    - The name of the pool that the encap block should be assigned to.
    type: str
    aliases: [ pool_name ]
  pool_allocation_mode:
    description:
    - The method used for allocating encaps to resources.
    type: str
    choices: [ dynamic, static]
    aliases: [ pool_mode ]
  block_end:
    description:
    - The end of encap block.
    type: int
    aliases: [ end ]
  block_name:
    description:
    - The name to give to the encap block.
    type: str
    aliases: [ name ]
  block_start:
    description:
    - The start of the encap block.
    type: int
    aliases: [ start ]
  state:
    description:
    - Use C(present) or C(absent) for adding or removing.
    - Use C(query) for listing an object or multiple objects.
    type: str
    choices: [ absent, present, query ]
    default: present
extends_documentation_fragment: aci
notes:
- The C(pool) must exist in order to add or delete a encap block.
seealso:
- module: aci_encap_pool_range
- module: aci_vlan_pool
- name: APIC Management Information Model reference
  description: More information about the internal APIC class B(fvns:EncapBlk).
  link: https://developer.cisco.com/docs/apic-mim-ref/
author:
- Jacob McGill (@jmcgill298)
- Dag Wieers (@dagwieers)
s�
- name: Add a new VLAN encap block
  aci_vlan_pool_encap_block:
    host: apic
    username: admin
    password: SomeSecretPassword
    pool: production
    block_start: 20
    block_end: 50
    state: present
  delegate_to: localhost

- name: Remove a VLAN encap block
  aci_vlan_pool_encap_block:
    host: apic
    username: admin
    password: SomeSecretPassword
    pool: production
    block_start: 20
    block_end: 50
    state: absent
  delegate_to: localhost

- name: Query a VLAN encap block
  aci_vlan_pool_encap_block:
    host: apic
    username: admin
    password: SomeSecretPassword
    pool: production
    block_start: 20
    block_end: 50
    state: query
  delegate_to: localhost
  register: query_result

- name: Query a VLAN pool for encap blocks
  aci_vlan_pool_encap_block:
    host: apic
    username: admin
    password: SomeSecretPassword
    pool: production
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all VLAN encap blocks
  aci_vlan_pool_encap_block:
    host: apic
    username: admin
    password: SomeSecretPassword
    state: query
  delegate_to: localhost
  register: query_result
s�

current:
  description: The existing configuration from the APIC after the module has finished
  returned: success
  type: list
  sample:
    [
        {
            "fvTenant": {
                "attributes": {
                    "descr": "Production environment",
                    "dn": "uni/tn-production",
                    "name": "production",
                    "nameAlias": "",
                    "ownerKey": "",
                    "ownerTag": ""
                }
            }
        }
    ]
error:
  description: The error information as returned from the APIC
  returned: failure
  type: dict
  sample:
    {
        "code": "122",
        "text": "unknown managed object class foo"
    }
raw:
  description: The raw output returned by the APIC REST API (xml or json)
  returned: parse error
  type: str
  sample: '<?xml version="1.0" encoding="UTF-8"?><imdata totalCount="1"><error code="122" text="unknown managed object class foo"/></imdata>'
sent:
  description: The actual/minimal configuration pushed to the APIC
  returned: info
  type: list
  sample:
    {
        "fvTenant": {
            "attributes": {
                "descr": "Production environment"
            }
        }
    }
previous:
  description: The original configuration from the APIC before the module has started
  returned: info
  type: list
  sample:
    [
        {
            "fvTenant": {
                "attributes": {
                    "descr": "Production",
                    "dn": "uni/tn-production",
                    "name": "production",
                    "nameAlias": "",
                    "ownerKey": "",
                    "ownerTag": ""
                }
            }
        }
    ]
proposed:
  description: The assembled configuration from the user-provided parameters
  returned: info
  type: dict
  sample:
    {
        "fvTenant": {
            "attributes": {
                "descr": "Production environment",
                "name": "production"
            }
        }
    }
filter_string:
  description: The filter string used for the request
  returned: failure or debug
  type: str
  sample: ?rsp-prop-include=config-only
method:
  description: The HTTP method used for the request to the APIC
  returned: failure or debug
  type: str
  sample: POST
response:
  description: The HTTP response from the APIC
  returned: failure or debug
  type: str
  sample: OK (30 bytes)
status:
  description: The HTTP status from the APIC
  returned: failure or debug
  type: int
  sample: 200
url:
  description: The HTTP url used for the request to the APIC
  returned: failure or debug
  type: str
  sample: https://10.11.12.13/api/mo/uni/tn-production.json
(t
AnsibleModule(t	ACIModuletaci_argument_speccC`st�}|jdtddddg�dtddddg�dtdd	dd
g�dtdd	ddg�d
tddddgddddg�dtddddg�dtddddgdddg�dtddddddddg��td|dtdddddddggddddddggg�}|jd
}|jd}|jd}|jd}|jd}|jd}|jd}|jd}	|dk	r�dj|�}
nd}
|dk	r�dj|�}nd}d j||
�}|}
xR||fD]D}|dk	rd!|koCd"kns^|jd#d$�q^qqW|dk	r�|dk	r�||kr�|jd#d%�q�n0|dkr�|dkr�|dkr�d}q�n|dk	r|dk	r�d&j||�}
q|jd#d'�nt	|�}|j
d(td)d*d+d,j|
�d-|d.i|d6�d/td)d0d+|d-|d.i|d16|
d26|d6��|j�|	dkr�|jd)d0d3i|d46|d6|d16|d6|
d26�|j
d)d0�|j�n|	dkr|j�n|j�dS(5Ntpoolttypetstrtaliasest	pool_namet
block_nametnamet	block_endtinttendtblock_starttstarttallocation_modetmodetchoicestdynamictinherittstatictdescriptiontdescrtpool_allocation_modet	pool_modetstatetdefaulttpresenttabsenttqueryt
argument_spectsupports_check_modetrequired_ifsvlan-{0}sfrom-[{0}]-to-[{1}]ii�tmsgsLvlan pools must have 'block_start' and 'block_end' values between 1 and 4094s?The 'block_start' must be less than or equal to the 'block_end's	[{0}]-{1}s?ACI requires the 'pool_allocation_mode' when 'pool' is providedt
root_classt	aci_classt
fvnsVlanInstPtaci_rnsinfra/vlanns-{0}t
module_objectt
target_filtert
subclass_1tfvnsEncapBlktfromttotclass_configt	allocMode(R
tupdatetdictRtTruetparamstNonetformatt	fail_jsonR	t
construct_urltget_existingtpayloadtget_difftpost_configt
delete_configt	exit_json(R&tmoduleRRRRRRRR!t	encap_endtencap_starttaci_block_moRtencap_idtaci((sY/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_vlan_pool_encap_block.pytmain�s�		'$%!







	
	

t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt$ansible.module_utils.network.aci.aciR	R
RJt__name__(((sY/usr/lib/python2.7/site-packages/ansible/modules/network/aci/aci_vlan_pool_encap_block.pyt<module>s


B7i	l

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]