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_epg.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_site_anp_epg
short_description: Manage site-local Endpoint Groups (EPGs) in schema template
description:
- Manage site-local EPGs 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.
    type: str
  epg:
    description:
    - The name of the EPG 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_anp
- module: mso_schema_site_anp_epg_subnet
- module: mso_schema_template_anp_epg
extends_documentation_fragment: mso
s3
- name: Add a new site EPG
  mso_schema_site_anp_epg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    anp: ANP1
    epg: EPG1
    state: present
  delegate_to: localhost

- name: Remove a site EPG
  mso_schema_site_anp_epg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    anp: ANP1
    epg: EPG1
    state: absent
  delegate_to: localhost

- name: Query a specific site EPGs
  mso_schema_site_anp_epg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    anp: ANP1
    epg: EPG1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all site EPGs
  mso_schema_site_anp_epg:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema1
    site: Site1
    template: Template1
    anp: ANP1
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_spectissubsetcC`s�t�}|jdtdddt�dtdddt�dtdddt�dtdddt�dtddd	d
g�dtdddd
ddd
dg��td|dtddddggdd
dggg�}|jd}|jd}|jd}|jd}|jd}|jd}t|�}|jdd|�}	|	sm|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"^qU}||kr�|jdd#j	|dj|���n|j|�}|jd |d|d|d|�}g|	d|d!|d$D]}|d%^q�}|dk	rc||krc|j|�}d&j	|||�}|	d|d!|d$||_n|dkr�|dkr�|	d|d!|d$|_n(|js�|jdd'j	d|��n|j�nd(j	||�}g}|j|_|dkr;|jr�i|_|_|jtd)d*d+|��q�n�|d
kr�td%td,|d|d-|d.|��}|j|d/t�|js�|jtd)d0d+|d1d2|j��n|j|_n|js�|j|
d3d4d5|�n|j�dS(6Ntschemattypetstrtrequiredtsitettemplatetanptepgtaliasestnametstatetdefaulttpresenttchoicestabsenttqueryt
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_idtanpstanpRefs5Provided anp '{0}' does not exist. Existing anps: {1}tepgstepgRefs/sites/{0}/anps/{1}/epgs/{2}sEPG '{epg}' not founds/sites/{0}/anps/{1}/epgstoptremovetpathtschemaIdtanpNametepgNametcollatetadds/-tvaluetmethodtPATCHtdata(RtupdatetdicttTrueR	tparamsR
tget_objt	fail_jsontformattlookup_sitetjointindextanp_reftepg_reftNonetexistingt	exit_jsontprevioustsenttappendtsanitizetproposedt
check_modetrequest(RtmoduleR
RRRRRtmsot
schema_objtschema_pathR'tsite_idtsR$tsite_idxt
site_templateRBtaR(tanp_idxRCteR*tepg_idxtepg_patht	epgs_pathtopstpayload((sW/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_anp_epg.pytmain|s�		%






++)($1$ 	
	"	,	t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RRR^t__name__(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_site_anp_epg.pyt<module>s


07	g

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