Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/illumos/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZdefd
��YZ
d�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: dladm_etherstub
short_description: Manage etherstubs on Solaris/illumos systems.
description:
    - Create or delete etherstubs on Solaris/illumos systems.
version_added: "2.2"
author: Adam Števko (@xen0l)
options:
    name:
        description:
            - Etherstub name.
        required: true
    temporary:
        description:
            - Specifies that the etherstub is temporary. Temporary etherstubs
              do not persist across reboots.
        required: false
        default: false
        type: bool
    state:
        description:
            - Create or delete Solaris/illumos etherstub.
        required: false
        default: "present"
        choices: [ "present", "absent" ]
s�
# Create 'stub0' etherstub
- dladm_etherstub:
    name: stub0
    state: present

# Remove 'stub0 etherstub
- dladm_etherstub:
    name: stub0
    state: absent
s0
name:
    description: etherstub name
    returned: always
    type: str
    sample: "switch0"
state:
    description: state of the target
    returned: always
    type: str
    sample: "present"
temporary:
    description: etherstub's persistence
    returned: always
    type: bool
    sample: "True"
(t
AnsibleModulet	EtherstubcB`s,eZd�Zd�Zd�Zd�ZRS(cC`s=||_|jd|_|jd|_|jd|_dS(Ntnamet	temporarytstate(tmoduletparamsR
RR(tselfR
((sS/usr/lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pyt__init__Ns	cC`sh|jjdt�g}|jd�|j|j�|jj|�\}}}|dkr`tStSdS(Ntdladmsshow-etherstubi(R
tget_bin_pathtTruetappendR
trun_commandtFalse(Rtcmdtrct_((sS/usr/lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pytetherstub_existsUs
cC`s^|jjdt�g}|jd�|jr>|jd�n|j|j�|jj|�S(NRscreate-etherstubs-t(R
RRRRR
R(RR((sS/usr/lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pytcreate_etherstubbs
	cC`s^|jjdt�g}|jd�|jr>|jd�n|j|j�|jj|�S(NRsdelete-etherstubs-t(R
RRRRR
R(RR((sS/usr/lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pytdelete_etherstubms
	(t__name__t
__module__RRRR(((sS/usr/lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pyR	Ls		
	cC`stdtdtdt�dtdtdd�dtdd	d
dd	g��dt�}t|�}d}d
}d
}i}|j|d<|j|d<|j|d<|jdkr"|j	�r�|j
r�|jdt�n|j�\}}}|dkr|j
d|jd|d|�qq�n�|jd	kr�|j	�sq|j
rY|jdt�n|j�\}}}n|dk	r�|dkr�|j
d|jd|d|�q�n|dkr�t|d<n
t|d<|r�||d<n|r�||d<n|j|�dS(Nt
argument_specR
trequiredRtdefaultttypetboolRtpresenttchoicestabsenttsupports_check_modettchangeditmsgRtstdouttstderr(RtdictRRR	tNoneR
RRRt
check_modet	exit_jsonRt	fail_jsonR(R
t	etherstubRtoutterrtresult((sS/usr/lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pytmainysH	


	(	%



t__main__N(t
__future__RRRR"t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtobjectR	R6R(((sS/usr/lib/python2.7/site-packages/ansible/modules/network/illumos/dladm_etherstub.pyt<module>s


-	1

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