Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/nxos/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_vrf_af.pyc

�
�Udac@s�idd6dgd6dd6ZdZdZdZd	d
lmZmZd	dlmZmZd	dl	m
Z
d	d
lmZd�Z
edkr�e
�ndS(s1.1tmetadata_versiontpreviewtstatustnetworktsupported_bysF
---
module: nxos_vrf_af
extends_documentation_fragment: nxos
version_added: "2.2"
short_description: Manages VRF AF.
description:
  - Manages VRF AF
author: Gabriele Gerbino (@GGabriele)
notes:
  - Tested against NXOSv 7.3.(0)D1(1) on VIRL
  - Default, where supported, restores params default value.
options:
  vrf:
    description:
      - Name of the VRF.
    required: true
  afi:
    description:
      - Address-Family Identifier (AFI).
    required: true
    choices: ['ipv4', 'ipv6']
  route_target_both_auto_evpn:
    description:
      - Enable/Disable the EVPN route-target 'auto' setting for both
        import and export target communities.
    type: bool
  state:
    description:
      - Determines whether the config should be present or
        not on the device.
    default: present
    choices: ['present','absent']
sd
- nxos_vrf_af:
    vrf: ntc
    afi: ipv4
    route_target_both_auto_evpn: True
    state: present
s�
commands:
    description: commands sent to the device
    returned: always
    type: list
    sample: ["vrf context ntc", "address-family ipv4 unicast"]
i����(t
get_configtload_config(tnxos_argument_spect
check_args(t
AnsibleModule(t
NetworkConfigc
Cs�tdtdt�dtdtdddg�dtdtdd	�d
tdddgd
d��}|jt�td|dt�}t�}t||�itd6|d6}t|�}t	ddd|�}d|j
dd|j
dg}y|j|�}Wntk
rd}nXt�}|r\|j
d
dkr\|jd|j
d�n�|j
d
dkrO|rd|k}	|j
ddk	rLt|j
d�}
|
r�|	r�|jd|j
d�|jd�q|	r|
r|jd|j
d�|jd�qqLqO|jd|j
d�|j
drO|jd�qOn|r�|jdd|j
d�|js�t||�nt|d<n||d<|j|�dS(Ntvrftrequiredtafitchoicestipv4tipv6troute_target_both_auto_evpnttypetbooltstatetpresenttabsenttdefaultt
argument_spectsupports_check_modetchangedtwarningstindentitcontentssvrf context %ssaddress-family %s unicastsno address-family %s unicastsroute-target both auto evpnsno route-target both auto evpnitcommands(tdicttTruetFalsetupdateRR	tlistRRR
tparamstget_block_configt
ValueErrortNonetappendRtinsertt
check_modeRt	exit_json(RtmoduleRtresulttconfig_texttconfigtpathtcurrentRthavetwant((sL/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_vrf_af.pytmainOsT
	


	


	

t__main__N(tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNt&ansible.module_utils.network.nxos.nxosRRRRtansible.module_utils.basicR	t*ansible.module_utils.network.common.configR
R4t__name__(((sL/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_vrf_af.pyt<module>s


#	=

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