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_mac_pool.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bys4
---
module: ucs_mac_pool
short_description: Configures MAC address pools on Cisco UCS Manager
description:
- Configures MAC address pools and MAC address blocks on Cisco UCS Manager.
- Examples can be used with the UCS Platform Emulator U(https://communities.cisco.com/ucspe).
extends_documentation_fragment: ucs
options:
  state:
    description:
    - If C(present), will verify MAC pool is present and will create if needed.
    - If C(absent), will verify MAC pool is absent and will delete if needed.
    choices: [present, absent]
    default: present
  name:
    description:
    - The name of the MAC 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 MAC pool is created.
    required: yes
  description:
    description:
    - A description of the MAC 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, descrption ]
  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_addr:
    description:
    - The first MAC address in the block of addresses.
    - This is the From field in the UCS Manager MAC Blocks menu.
  last_addr:
    description:
    - The last MAC address in the block of addresses.
    - This is the To field in the UCS Manager Add MAC 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.5'
s�
- name: Configure MAC address pool
  ucs_mac_pool:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: mac-A
    first_addr: 00:25:B5:00:66:00
    last_addr: 00:25:B5:00:67:F3
    order: sequential

- name: Remove MAC address pool
  ucs_mac_pool:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: mac-A
    state: absent
s
#
(t
AnsibleModule(t	UCSModuletucs_argument_speccC`s�t}|jdtdddd�dtdddt�dtdddd	d
ddg�d
tdddddddg�dtdd�dtdd�dtdddddgdd��t|dt�}t|�}t}ddlm}ddl	m
}t}yt}t}|jdd|jd}	|jj
|	�}
|
rQt}n|jddkr�|r|js�|jj|
�|jj�nt}qnt|rUtd|jd
�}|jd|d<|
j|�rU|jdrI|jdrI|	d|jdj�d|jdj�}|jj
|�}
|
rOt}qOqRt}qUn|s|js
|d|jdd|jdd|jdd|jd
�}
|jdr�|jdr�|d|
d|jdd|jd�}
n|jj|
t�|jj�nt}nWn0tk
rF}t}d t|�|jd!<nX||jd"<|rm|j|j�n|j|j�dS(#Ntorg_dnttypetstrtdefaultsorg-roottnametrequiredtdescrttaliasestdescriptiont
descrptiontordertchoicest
sequentialt
first_addrt	last_addrtstatetpresenttabsenttsupports_check_modei(tMacpoolPool(tMacpoolBlocks
/mac-pool-tassignment_orders/block-t-tparent_mo_or_dnttotr_fromssetup error: %s tmsgtchanged(R
tupdatetdicttTrueRR	tFalset"ucsmsdk.mometa.macpool.MacpoolPoolRt#ucsmsdk.mometa.macpool.MacpoolBlockR tparamstlogin_handletquery_dnt
check_modet	remove_motcommittcheck_prop_matchtuppertadd_mot	ExceptionR
tresultt	fail_jsont	exit_json(t
argument_spectmoduletucsterrRR R't	mo_existstprops_matchtdntmotkwargstblock_dntmo_1te((sV/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_mac_pool.pytmainbs|	!!"			0	





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


9	W

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