Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_rollback_module.rst

raw
1 .. _cisco.nxos.nxos_rollback_module:
2
3
4 ************************
5 cisco.nxos.nxos_rollback
6 ************************
7
8 **Set a checkpoint or rollback to a checkpoint.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - This module offers the ability to set a configuration checkpoint file or rollback to a configuration checkpoint file on Cisco NXOS switches.
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="1">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="1">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>checkpoint_file</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">string</span>
43 </div>
44 </td>
45 <td>
46 </td>
47 <td>
48 <div>Name of checkpoint file to create. Mutually exclusive with rollback_to.</div>
49 </td>
50 </tr>
51 <tr>
52 <td colspan="1">
53 <div class="ansibleOptionAnchor" id="parameter-"></div>
54 <b>rollback_to</b>
55 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
56 <div style="font-size: small">
57 <span style="color: purple">string</span>
58 </div>
59 </td>
60 <td>
61 </td>
62 <td>
63 <div>Name of checkpoint file to rollback to. Mutually exclusive with checkpoint_file.</div>
64 </td>
65 </tr>
66 </table>
67 <br/>
68
69
70 Notes
71 -----
72
73 .. note::
74 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
75 - Unsupported for Cisco MDS
76 - Sometimes ``transport=nxapi`` may cause a timeout error.
77 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
78 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
79 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
80
81
82
83 Examples
84 --------
85
86 .. code-block:: yaml
87
88 - cisco.nxos.nxos_rollback:
89 checkpoint_file: backup.cfg
90 username: '{{ un }}'
91 password: '{{ pwd }}'
92 host: '{{ inventory_hostname }}'
93 - cisco.nxos.nxos_rollback:
94 rollback_to: backup.cfg
95 username: '{{ un }}'
96 password: '{{ pwd }}'
97 host: '{{ inventory_hostname }}'
98
99
100
101 Return Values
102 -------------
103 Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
104
105 .. raw:: html
106
107 <table border=0 cellpadding=0 class="documentation-table">
108 <tr>
109 <th colspan="1">Key</th>
110 <th>Returned</th>
111 <th width="100%">Description</th>
112 </tr>
113 <tr>
114 <td colspan="1">
115 <div class="ansibleOptionAnchor" id="return-"></div>
116 <b>filename</b>
117 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
118 <div style="font-size: small">
119 <span style="color: purple">string</span>
120 </div>
121 </td>
122 <td>success</td>
123 <td>
124 <div>The filename of the checkpoint/rollback file.</div>
125 <br/>
126 <div style="font-size: smaller"><b>Sample:</b></div>
127 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">backup.cfg</div>
128 </td>
129 </tr>
130 <tr>
131 <td colspan="1">
132 <div class="ansibleOptionAnchor" id="return-"></div>
133 <b>status</b>
134 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
135 <div style="font-size: small">
136 <span style="color: purple">string</span>
137 </div>
138 </td>
139 <td>success</td>
140 <td>
141 <div>Which operation took place and whether it was successful.</div>
142 <br/>
143 <div style="font-size: smaller"><b>Sample:</b></div>
144 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">rollback executed</div>
145 </td>
146 </tr>
147 </table>
148 <br/><br/>
149
150
151 Status
152 ------
153
154
155 Authors
156 ~~~~~~~
157
158 - Jason Edelman (@jedelman8)
159 - Gabriele Gerbino (@GGabriele)