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_rollback.pyc

�
�Udac@s�idd6dgd6dd6ZdZdZdZd	d
lmZmZd	dlmZd�Z	d
�Z
d�Zedkr�e�ndS(s1.1tmetadata_versiontpreviewtstatustnetworktsupported_bys.
---
module: nxos_rollback
extends_documentation_fragment: nxos
version_added: "2.2"
short_description: Set a checkpoint or rollback to a checkpoint.
description:
    - This module offers the ability to set a configuration checkpoint
      file or rollback to a configuration checkpoint file on Cisco NXOS
      switches.
author:
    - Jason Edelman (@jedelman8)
    - Gabriele Gerbino (@GGabriele)
notes:
    - Tested against NXOSv 7.3.(0)D1(1) on VIRL
    - Sometimes C(transport=nxapi) may cause a timeout error.
options:
    checkpoint_file:
        description:
            - Name of checkpoint file to create. Mutually exclusive
              with rollback_to.
    rollback_to:
        description:
            - Name of checkpoint file to rollback to. Mutually exclusive
              with checkpoint_file.
s
- nxos_rollback:
    checkpoint_file: backup.cfg
    username: "{{ un }}"
    password: "{{ pwd }}"
    host: "{{ inventory_hostname }}"
- nxos_rollback:
    rollback_to: backup.cfg
    username: "{{ un }}"
    password: "{{ pwd }}"
    host: "{{ inventory_hostname }}"
s
filename:
    description: The filename of the checkpoint/rollback file.
    returned: success
    type: str
    sample: 'backup.cfg'
status:
    description: Which operation took place and whether it was successful.
    returned: success
    type: str
    sample: 'rollback executed'
i����(tnxos_argument_spectrun_commands(t
AnsibleModulecCs=idd6dd6id|d6dd6g}t||�dS(Nsterminal dont-asktcommandttexttoutputscheckpoint file %s(R(tfilenametmoduletcommands((sN/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_rollback.pyt
checkpointRs

cCs,id|d6dd6g}t||�dS(Nsrollback running-config file %sRR	R
(R(RRR
((sN/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_rollback.pytrollback\s
cCs�tdtdt�dtdt��}|jt�td|dddggdt�}|jd}|jd}d}d}t}|r�t||�d}n|r�t||�d}nt	}|p�|}|j
d	|d
|d|�dS(Ntcheckpoint_filetrequiredtrollback_tot
argument_spectmutually_exclusivetsupports_check_modescheckpoint file createdsrollback executedtchangedRR(tdicttFalsetupdateRRtparamstNoneRRtTruet	exit_json(RRRRRRR((sN/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_rollback.pytmainds,
	


	
	t__main__N(
tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNt&ansible.module_utils.network.nxos.nxosRRtansible.module_utils.basicRRRRt__name__(((sN/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_rollback.pyt<module>s




	
		 

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