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

�
�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_schema_template_anp
short_description: Manage Application Network Profiles (ANPs) in schema templates
description:
- Manage ANPs in schema templates on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '2.8'
options:
  schema:
    description:
    - The name of the schema.
    type: str
    required: yes
  template:
    description:
    - The name of the template.
    type: str
    required: yes
  anp:
    description:
    - The name of the ANP to manage.
    type: str
    aliases: [ name ]
  display_name:
    description:
    - The name as displayed on the MSO web interface.
    type: str
  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
seealso:
- module: mso_schema_template
- module: mso_schema_template_anp_epg
extends_documentation_fragment: mso
s�
- name: Add a new ANP
  mso_schema_template_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    anp: ANP 1
    state: present
  delegate_to: localhost

- name: Remove an ANP
  mso_schema_template_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    anp: ANP 1
    state: absent
  delegate_to: localhost

- name: Query a specific ANPs
  mso_schema_template_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all ANPs
  mso_schema_template_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_spectissubsetcC`s t�}|jdtdddt�dtdddt�dtddddg�d	tdd�d
tddddd
dddg��td|dtdd
ddggd
ddggg�}|jd}|jd}|jd}|jd	}|jd
}t|�}|jdd|�}|sE|jddj	|��ndj	|�}	g|dD]}
|
d^q_}||kr�|jddj	|dj
|���n|j|�}g|d|dD]}
|
d^q�}|dk	r$||kr$|j|�}|d|d||_
n|dkr�|dkrT|d|d|_
n(|j
s||jddj	d|��n|j�ndj	|�}dj	||�}g}|j
|_|dkr|j
r�i|_|_
|jtdd d!|��q�n�|dkr�|dkr.|j
r.|}ng}|j
rFd}ntd|d|d"|�}|j|d#t�|j
r�|dk	r�|jtdd$d!|d%d&|��q�n)|jtdd'd!|d(d&|j��|j|_
n|js|j|	d)d*d+|�n|j�dS(,Ntschemattypetstrtrequiredttemplatetanptaliasestnametdisplay_nametstatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftschemastdisplayNametmsgs$Provided schema '{0}' does not existsschemas/{id}t	templatess?Provided template '{0}' does not exist. Existing templates: {1}s, tanpssANP '{anp}' not founds/templates/{0}/anpss/templates/{0}/anps/{1}toptremovetpathtepgstcollatetreplaces/displayNametvaluetadds/-tmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattjointindextNonetexistingt	exit_jsontprevioustsenttappendtsanitizetproposedt
check_modetrequest(RtmoduleR
RRRRtmsot
schema_objtschema_pathttR"ttemplate_idxtaR#tanp_idxt	anps_pathtanp_pathtopsR'tpayload((sW/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_anp.pytmainms~		%




!()	
	"					,)	t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RRRNt__name__(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_anp.pyt<module>s


*.	_

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