Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_gir_profile_management_module.rst

raw
1 .. _cisco.nxos.nxos_gir_profile_management_module:
2
3
4 **************************************
5 cisco.nxos.nxos_gir_profile_management
6 **************************************
7
8 **Create a maintenance-mode or normal-mode profile for GIR.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manage a maintenance-mode or normal-mode profile with configuration commands that can be applied during graceful removal or graceful insertion.
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>commands</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">list</span>
43 / <span style="color: purple">elements=string</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>List of commands to be included into the profile.</div>
50 </td>
51 </tr>
52 <tr>
53 <td colspan="1">
54 <div class="ansibleOptionAnchor" id="parameter-"></div>
55 <b>mode</b>
56 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
57 <div style="font-size: small">
58 <span style="color: purple">string</span>
59 / <span style="color: red">required</span>
60 </div>
61 </td>
62 <td>
63 <ul style="margin: 0; padding: 0"><b>Choices:</b>
64 <li>maintenance</li>
65 <li>normal</li>
66 </ul>
67 </td>
68 <td>
69 <div>Configure the profile as Maintenance or Normal mode.</div>
70 </td>
71 </tr>
72 <tr>
73 <td colspan="1">
74 <div class="ansibleOptionAnchor" id="parameter-"></div>
75 <b>state</b>
76 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
77 <div style="font-size: small">
78 <span style="color: purple">string</span>
79 </div>
80 </td>
81 <td>
82 <ul style="margin: 0; padding: 0"><b>Choices:</b>
83 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
84 <li>absent</li>
85 </ul>
86 </td>
87 <td>
88 <div>Specify desired state of the resource.</div>
89 </td>
90 </tr>
91 </table>
92 <br/>
93
94
95 Notes
96 -----
97
98 .. note::
99 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
100 - Unsupported for Cisco MDS
101 - ``state=absent`` removes the whole profile.
102 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
103 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
104 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
105
106
107
108 Examples
109 --------
110
111 .. code-block:: yaml
112
113 # Create a maintenance-mode profile
114 - cisco.nxos.nxos_gir_profile_management:
115 mode: maintenance
116 commands:
117 - router eigrp 11
118 - isolate
119
120 # Remove the maintenance-mode profile
121 - cisco.nxos.nxos_gir_profile_management:
122 mode: maintenance
123 state: absent
124
125
126
127 Return Values
128 -------------
129 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:
130
131 .. raw:: html
132
133 <table border=0 cellpadding=0 class="documentation-table">
134 <tr>
135 <th colspan="1">Key</th>
136 <th>Returned</th>
137 <th width="100%">Description</th>
138 </tr>
139 <tr>
140 <td colspan="1">
141 <div class="ansibleOptionAnchor" id="return-"></div>
142 <b>changed</b>
143 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
144 <div style="font-size: small">
145 <span style="color: purple">boolean</span>
146 </div>
147 </td>
148 <td>always</td>
149 <td>
150 <div>check to see if a change was made on the device</div>
151 <br/>
152 <div style="font-size: smaller"><b>Sample:</b></div>
153 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">True</div>
154 </td>
155 </tr>
156 <tr>
157 <td colspan="1">
158 <div class="ansibleOptionAnchor" id="return-"></div>
159 <b>end_state</b>
160 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
161 <div style="font-size: small">
162 <span style="color: purple">list</span>
163 </div>
164 </td>
165 <td>verbose mode</td>
166 <td>
167 <div>list of profile entries after module execution.</div>
168 <br/>
169 <div style="font-size: smaller"><b>Sample:</b></div>
170 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;router bgp 65535&#x27;, &#x27;isolate&#x27;, &#x27;router eigrp 10&#x27;, &#x27;isolate&#x27;, &#x27;diagnostic bootup level complete&#x27;, &#x27;router eigrp 11&#x27;, &#x27;isolate&#x27;]</div>
171 </td>
172 </tr>
173 <tr>
174 <td colspan="1">
175 <div class="ansibleOptionAnchor" id="return-"></div>
176 <b>existing</b>
177 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
178 <div style="font-size: small">
179 <span style="color: purple">list</span>
180 </div>
181 </td>
182 <td>verbose mode</td>
183 <td>
184 <div>list of existing profile commands.</div>
185 <br/>
186 <div style="font-size: smaller"><b>Sample:</b></div>
187 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;router bgp 65535&#x27;, &#x27;isolate&#x27;, &#x27;router eigrp 10&#x27;, &#x27;isolate&#x27;, &#x27;diagnostic bootup level complete&#x27;]</div>
188 </td>
189 </tr>
190 <tr>
191 <td colspan="1">
192 <div class="ansibleOptionAnchor" id="return-"></div>
193 <b>proposed</b>
194 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
195 <div style="font-size: small">
196 <span style="color: purple">list</span>
197 </div>
198 </td>
199 <td>verbose mode</td>
200 <td>
201 <div>list of commands passed into module.</div>
202 <br/>
203 <div style="font-size: smaller"><b>Sample:</b></div>
204 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;router eigrp 11&#x27;, &#x27;isolate&#x27;]</div>
205 </td>
206 </tr>
207 <tr>
208 <td colspan="1">
209 <div class="ansibleOptionAnchor" id="return-"></div>
210 <b>updates</b>
211 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
212 <div style="font-size: small">
213 <span style="color: purple">list</span>
214 </div>
215 </td>
216 <td>always</td>
217 <td>
218 <div>commands sent to the device</div>
219 <br/>
220 <div style="font-size: smaller"><b>Sample:</b></div>
221 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;configure maintenance profile maintenance-mode&#x27;, &#x27;router eigrp 11&#x27;, &#x27;isolate&#x27;]</div>
222 </td>
223 </tr>
224 </table>
225 <br/><br/>
226
227
228 Status
229 ------
230
231
232 Authors
233 ~~~~~~~
234
235 - Gabriele Gerbino (@GGabriele)