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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bysZ	
---
module: ucs_san_connectivity
short_description: Configures SAN Connectivity Policies on Cisco UCS Manager
description:
- Configures SAN Connectivity Policies 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 SAN Connectivity Policies are present and will create if needed.
    - If C(absent), will verify SAN Connectivity Policies are absent and will delete if needed.
    choices: [present, absent]
    default: present
  name:
    description:
    - The name of the SAN Connectivity Policy.
    - This name can be between 1 and 16 alphanumeric characters.
    - "You cannot use spaces or any special characters other than - (hyphen), \"_\" (underscore), : (colon), and . (period)."
    - You cannot change this name after the policy is created.
    required: yes
  description:
    description:
    - A description of the policy.
    - Cisco recommends including information about where and when to use the policy.
    - 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 ]
  wwnn_pool:
    description:
    - Name of the WWNN pool to use for WWNN assignment.
    default: default
  vhba_list:
    description:
    - List of vHBAs used by the SAN Connectivity Policy.
    - vHBAs used by the SAN Connectivity Policy must be created from a vHBA template.
    - "Each list element has the following suboptions:"
    - "= name"
    - "  The name of the virtual HBA (required)."
    - "= vhba_template"
    - "  The name of the virtual HBA template (required)."
    - "- adapter_policy"
    - "  The name of the Fibre Channel adapter policy."
    - "  A user defined policy can be used, or one of the system defined policies (default, Linux, Solaris, VMware, Windows, WindowsBoot)"
    - "  [Default: default]"
    - "- order"
    - "  String specifying the vHBA assignment order (e.g., '1', '2')."
    - "  [Default: unspecified]"
  org_dn:
    description:
    - Org dn (distinguished name)
    default: org-root
requirements:
- ucsmsdk
author:
- David Soper (@dsoper2)
- CiscoUcs (@CiscoUcs)
version_added: '2.5'
s'
- name: Configure SAN Connectivity Policy
  ucs_san_connectivity:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: Cntr-FC-Boot
    wwnn_pool: WWNN-Pool
    vhba_list:
    - name: Fabric-A
      vhba_template: vHBA-Template-A
      adapter_policy: Linux
    - name: Fabric-B
      vhba_template: vHBA-Template-B
      adapter_policy: Linux

- name: Remove SAN Connectivity Policy
  ucs_san_connectivity:
    hostname: 172.16.143.150
    username: admin
    password: password
    name: Cntr-FC-Boot
    state: absent
s
#
(t
AnsibleModule(t	UCSModuletucs_argument_speccC`s�t}|jdtdddd�dtdd�dtdd�dtdddd�d	tdd
�dtddddd
ddg�dtdd
��t|dtdddggdddgg�}t|�}t}ddlm}ddl	m
}ddlm}ddl
m}t}yh|jdr?|jd}	n|jg}	x8|	D]0}
t}t}|
jd�s�d|
d<n|
jd�s�d|
d<n|
jd	�r�xM|
d	D]>}
|
jd�s�d|
d<n|
jd�s�d|
d<q�q�Wn|jdd|
d}|jj|�}|r=t}td|
d�}|j|�r=|d}|jj|�}|r:td|
d�}|j|�r7|
jd	�s�t}q4x�|
d	D]r}
|d|
d}|jj|�}i}|
d|d <|
d|d<|
d!|d"<|j|�r�t}q�q�Wq7q:q=n|jddkr�|r�|js|jj|�|jj�nt}q�qR|sR|jsy|d#|jdd|
dd|
d�}|d#|d|
dd$d%�}|
jd	�rVxa|
d	D]R}
|d#|d|
dd |
dd"|
d!d|
d�}|d#|dd�}q�Wn|jj|t�|jj�nt}qRqRWWn0tk
r�}t}d&t|�|jd'<nX||jd(<|r�|j|j�n|j|j�dS()Ntorg_dnttypetstrtdefaultsorg-roottnametdescrt	wwnn_poolt	vhba_listtlisttstatetpresenttchoicestabsenttsan_connectivity_listtsupports_check_modetrequired_one_oftmutually_exclusivei(tVnicSanConnPolicy(t
VnicFcNode(tVnicFc(tVnicFcIfttadapter_policytordertunspecifieds/san-conn-pol-s/fc-nodetident_pool_names/fc-tadaptor_profile_namet
vhba_templatet
nw_templ_nametparent_mo_or_dntaddrspool-derivedssetup error: %s tmsgtchanged(R
tupdatetdictRtTrueR	tFalset%ucsmsdk.mometa.vnic.VnicSanConnPolicyRtucsmsdk.mometa.vnic.VnicFcNodeRtucsmsdk.mometa.vnic.VnicFcRtucsmsdk.mometa.vnic.VnicFcIfRtparamstgettlogin_handletquery_dntcheck_prop_matcht
check_modet	remove_motcommittadd_mot	ExceptionR
tresultt	fail_jsont	exit_json(t
argument_spectmoduletucsterrRRRRR+Rtsan_connectivityt	mo_existstprops_matchtvhbatdntmotkwargstchild_dntmo_1tmo_2tmo_2_1te((s^/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_san_connectivity.pytmainls�	!





			



	




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


>	�

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