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_site_anp.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_schema_site_anp
short_description: Manage site-local Application Network Profiles (ANPs) in schema template
description:
- Manage site-local ANPs in schema template 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
  site:
    description:
    - The name of the site.
    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 ]
  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_site
- module: mso_schema_site_anp_epg
- module: mso_schema_template_anp
extends_documentation_fragment: mso
s�
- name: Add a new site ANP
  mso_schema_site_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    anp: ANP1
    state: present
  delegate_to: localhost

- name: Remove a site ANP
  mso_schema_site_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    anp: ANP1
    state: absent
  delegate_to: localhost

- name: Query a specific site ANPs
  mso_schema_site_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all site ANPs
  mso_schema_site_anp:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_spectissubsetcC`s%t�}|jdtdddt�dtdddt�dtdddt�dtdddd	g�d
tddddd
dddg��td|dtdd
ddggd
ddggg�}|jd}|jd}|jd}|jd}|jd
}t|�}|jdd|�}|sK|jddj	|��ndj	|�}	|d}
|j
|�}g|dD]}|d|df^q~}
||f|
kr�|jddj	||dj|
���n|
j||f�}dj	||�}|j
d|
d|d|�}g|d|d D]}|d!^q3}|dk	r�||kr�|j|�}d"j	||�}|d|d ||_n|dkr|dkr�|d|d |_n(|js�|jdd#j	d|��n|j�nd$j	|�}g}|j|_|dkrk|jr�i|_|_|jtd%d&d'|��q�n�|dkr�td!td(|
d|d)|��}|j|d*t�|js�|jtd%d+d'|d,d-|j��n|j|_n|js|j|	d.d/d0|�n|j�dS(1Ntschemattypetstrtrequiredtsitettemplatetanptaliasestnametstatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftschemastdisplayNametmsgs$Provided schema '{0}' does not existsschemas/{id}tidtsitestsiteIdttemplateNamesNProvided site/template '{0}-{1}' does not exist. Existing sites/templates: {2}s, s{0}-{1}t	schema_idtanpstanpRefs/sites/{0}/anps/{1}sANP '{anp}' not founds/sites/{0}/anpstoptremovetpathtschemaIdtanpNametcollatetadds/-tvaluetmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattlookup_sitetjointindextanp_reftNonetexistingt	exit_jsontprevioustsenttappendtsanitizetproposedt
check_modetrequest(RtmoduleR
RRRRtmsot
schema_objtschema_pathR&tsite_idtsR#tsite_idxt
site_templateR>taR'tanp_idxtanp_patht	anps_pathtopstpayload((sS/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_anp.pytmainssz		%




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


,2	`

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