Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/remote_management/ucs/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_uuid_pool.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys�	
---
module: ucs_uuid_pool
short_description: Configures server UUID pools on Cisco UCS Manager
description:
- Configures server UUID pools and UUID blocks on Cisco UCS Manager.
- Examples can be used with the L(UCS Platform Emulator,https://communities.cisco.com/ucspe).
extends_documentation_fragment: ucs
options:
  state:
    description:
    - If C(present), will verify UUID pool is present and will create if needed.
    - If C(absent), will verify UUID pool is absent and will delete if needed.
    choices: [present, absent]
    default: present
  name:
    description:
    - The name of the UUID pool.
    - This name can be between 1 and 32 alphanumeric characters.
    - "You cannot use spaces or any special characters other than - (hyphen), \"_\" (underscore), : (colon), and . (period)."
    - You cannot change this name after the UUID pool is created.
    required: yes
  description:
    description:
    - "The user-defined description of the UUID pool."
    - Enter up to 256 characters.
    - "You can use any characters or spaces except the following:"
    - "` (accent mark), \ (backslash), ^ (carat), \" (double quote), = (equal sign), > (greater than), < (less than), or ' (single quote)."
    aliases: [ descr ]
  prefix:
    description:
    - UUID prefix used for the range of server UUIDs.
    - "If no value is provided, the system derived prefix will be used (equivalent to selecting 'derived' option in UI)."
    - "If the user provides a value, the user provided prefix will be used (equivalent to selecting 'other' option in UI)."
    - A user provided value should be in the format XXXXXXXX-XXXX-XXXX.
  order:
    description:
    - The Assignment Order field.
    - "This can be one of the following:"
    - "default - Cisco UCS Manager selects a random identity from the pool."
    - "sequential - Cisco UCS Manager selects the lowest available identity from the pool."
    choices: [default, sequential]
    default: default
  first_uuid:
    description:
    - The first UUID in the block of UUIDs.
    - This is the From field in the UCS Manager UUID Blocks menu.
  last_uuid:
    description:
    - The last UUID in the block of UUIDs.
    - This is the To field in the UCS Manager Add UUID Blocks menu.
  org_dn:
    description:
    - The distinguished name (dn) of the organization where the resource is assigned.
    default: org-root
requirements:
- ucsmsdk
author:
- David Soper (@dsoper2)
- CiscoUcs (@CiscoUcs)
version_added: '2.7'
s�
- name: Configure UUID address pool
  ucs_uuid_pool:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: UUID-Pool
    order: sequential
    first_uuid: 0000-000000000001
    last_uuid: 0000-000000000078

- name: Remove UUID address pool
  ucs_uuid_pool:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: UUID-Pool
    state: absent
s
#
(t
AnsibleModule(t	UCSModuletucs_argument_speccC`s�t}|jdtdddd�dtdddt�dtddd	d
gdd�dtddddd
ddg�dtdddd�dtdd�dtdd�dtddd
ddgdd��t|dt�}t|�}t}ddlm}ddl	m
}t|jd<yht}t}|jdd|jd}|j
j|�}	|	rjt}n|jddkr�|r�|js�|j
j|	�|j
j�nt|jd<q�n�|r�td|jd�}
|jd|
d
<|jdr
|jd|
d<n|	j|
�r�|jdr�|jdr�|d|jdj�d|jdj�}|j
j|�}|r�t}q�q�t}q�n|s�|jsu|jds�d|jd<n|d|jdd|jdd
|jdd|jdd|jd�}	|jdrR|jdrR|d|	d |jdd!|jd�}n|j
j|	t�|j
j�nt|jd<nWn0tk
r�}
t}d"t|
�|jd#<nX|r�|j|j�n|j|j�dS($Ntorg_dnttypetstrtdefaultsorg-roottnametrequiredtdescriptiontaliasestdescrttordertchoicest
sequentialtprefixt
first_uuidt	last_uuidtstatetpresenttabsenttsupports_check_modei(tUuidpoolPool(t
UuidpoolBlocktchangeds/uuid-pool-tassignment_orders/block-from-s-to-tderivedtparent_mo_or_dnttotr_fromssetup error: %s tmsg(R
tupdatetdicttTrueRR	tFalset$ucsmsdk.mometa.uuidpool.UuidpoolPoolRt%ucsmsdk.mometa.uuidpool.UuidpoolBlockR tresulttparamstlogin_handletquery_dnt
check_modet	remove_motcommittcheck_prop_matchtuppertadd_mot	ExceptionR
t	fail_jsont	exit_json(t
argument_spectmoduletucsterrRR t	mo_existstprops_matchtdntmotkwargstblock_dntmo_1te((sW/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_uuid_pool.pytmainhs�	!"	
		
0	





t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt*ansible.module_utils.remote_management.ucsR	R
RGt__name__(((sW/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_uuid_pool.pyt<module>s


?	\

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