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/mso_label.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: mso_label
short_description: Manage labels
description:
- Manage labels on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '2.8'
options:
  label:
    description:
    - The name of the label.
    type: str
    required: yes
    aliases: [ name ]
  type:
    description:
    - The type of the label.
    type: str
    choices: [ site ]
    default: site
  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: mso
s�
- name: Add a new label
  mso_label:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    label: Belgium
    type: site
    state: present
  delegate_to: localhost

- name: Remove a label
  mso_label:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    label: Belgium
    state: absent
  delegate_to: localhost

- name: Query a label
  mso_label:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    label: Belgium
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all labels
  mso_label:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_spectissubsetc	C`s�t�}|jdtddddg�dtddddddg�d	tdddd
ddd
dg��td
|dtdd	ddggd	d
dggg�}|jd}|jd}|jd	}t|�}d}d}|r1|j|d|�|_	|j	rC|j	d}dj
d|�}qCn|j|�|_	|dkrRn3|dkr�|j	|_|j	r�|j
r�i|_	q�|j|dd�|_	q�n�|d
kr�|j	|_td|d|d|�}|j|dt�|j	rIt|j|j	�s�|j
r"|j|_	qF|j|ddd|j�|_	q�q�|j
ra|j|_	q�|j|ddd|j�|_	n|j�dS(Ntlabelttypetstrtaliasestnametdefaulttsitetchoiceststatetpresenttabsenttqueryt
argument_spectsupports_check_modetrequired_iftlabelstdisplayNametidslabels/{id}tmethodtDELETEtcollatetPUTtdatatPOST(RtupdatetdictR	tTruetparamsR
tNonetget_objtexistingtformatt
query_objstprevioust
check_modetrequesttsanitizeRtsenttproposedt	exit_json(	RtmoduleR
t
label_typeRtmsotlabel_idtpathtpayload((sI/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_label.pytmain]s\		%


	
					'	$t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RRR;t__name__(((sI/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_label.pyt<module>s


 (	I

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