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_vlan_find.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bysK
---
module: ucs_vlan_find
short_description: Find VLANs on Cisco UCS Manager
description:
- Find VLANs on Cisco UCS Manager based on different criteria.
extends_documentation_fragment: ucs
options:
  pattern:
    description:
    - Regex pattern to find within the name property of the fabricVlan class.
    - This is required if C(vlanid) parameter is not supplied.
    type: str
  fabric:
    description:
    - "The fabric configuration of the VLAN.  This can be one of the following:"
    - "common - The VLAN applies to both fabrics and uses the same configuration parameters in both cases."
    - "A — The VLAN only applies to fabric A."
    - "B — The VLAN only applies to fabric B."
    choices: [common, A, B]
    default: common
    type: str
  vlanid:
    description:
    - The unique string identifier assigned to the VLAN.
    - A VLAN ID can be between '1' and '3967', or between '4048' and '4093'.
    - This is required if C(pattern) parameter is not supplied.
    type: str
requirements:
- ucsmsdk
author:
- David Martinez (@dx0xm)
- CiscoUcs (@CiscoUcs)
version_added: '2.9'
s-
- name: Get all vlans in fabric A
  ucs_vlan_find:
    hostname: 172.16.143.150
    username: admin
    password: password
    fabric: 'A'
    pattern: '.'
- name: Confirm if vlan 15 is present
  ucs_vlan_find:
    hostname: 172.16.143.150
    username: admin
    password: password
    vlanid: '15'
s�
vlan_list:
    description: basic details of vlans found
    returned: on success
    type: list
    sample: [
        {
            "id": "0",
            "name": "vlcloud1"
        }
    ]
(t
AnsibleModule(t	UCSModuletucs_argument_speccC`s�t}|jdtddddddddg�d	tdd�d
tdd��td|dtd
d	d
gg�}t|�}dg}|jddkr�|jd|jdd�n|jd
r�|jd|jd
d�n|jd|jd	d�|jj	dddj
|��}|dkrE|jdd�ng}x0|D](}|jtd|j
d|j��qRW|jdtd|�dS(NtfabricttypetstrtdefaulttcommontchoicestAtBtpatterntvlanidt
argument_spectsupports_check_modetrequired_one_ofs(cloud,"ethlan")s(switch_id,"s")s(id,"s(name,"t
fabricVlant
filter_strs and tmsgsFailed to query vlan objectstnametidtchangedt	vlan_list(R
tupdatetdictRtTrueR	tparamstappendtlogin_handlet
query_classidtjointNonet	fail_jsonRRt	exit_jsontFalse(Rtmoduletucstfiltlstobject_dicttvlnlisttob((sW/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_vlan_find.pytmainSs0	$	
!
&t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt*ansible.module_utils.remote_management.ucsR	R
R1t__name__(((sW/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_vlan_find.pyt<module>s


$
	%

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