Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_udld_module.rst

raw
1 .. _cisco.nxos.nxos_udld_module:
2
3
4 ********************
5 cisco.nxos.nxos_udld
6 ********************
7
8 **Manages UDLD global configuration params.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manages UDLD global configuration params.
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>aggressive</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 <ul style="margin: 0; padding: 0"><b>Choices:</b>
47 <li>enabled</li>
48 <li>disabled</li>
49 </ul>
50 </td>
51 <td>
52 <div>Toggles aggressive mode.</div>
53 </td>
54 </tr>
55 <tr>
56 <td colspan="1">
57 <div class="ansibleOptionAnchor" id="parameter-"></div>
58 <b>msg_time</b>
59 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
60 <div style="font-size: small">
61 <span style="color: purple">string</span>
62 </div>
63 </td>
64 <td>
65 </td>
66 <td>
67 <div>Message time in seconds for UDLD packets or keyword &#x27;default&#x27;.</div>
68 </td>
69 </tr>
70 <tr>
71 <td colspan="1">
72 <div class="ansibleOptionAnchor" id="parameter-"></div>
73 <b>reset</b>
74 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
75 <div style="font-size: small">
76 <span style="color: purple">boolean</span>
77 </div>
78 </td>
79 <td>
80 <ul style="margin: 0; padding: 0"><b>Choices:</b>
81 <li>no</li>
82 <li>yes</li>
83 </ul>
84 </td>
85 <td>
86 <div>Ability to reset all ports shut down by UDLD. &#x27;state&#x27; parameter cannot be &#x27;absent&#x27; when this is present.</div>
87 </td>
88 </tr>
89 <tr>
90 <td colspan="1">
91 <div class="ansibleOptionAnchor" id="parameter-"></div>
92 <b>state</b>
93 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
94 <div style="font-size: small">
95 <span style="color: purple">string</span>
96 </div>
97 </td>
98 <td>
99 <ul style="margin: 0; padding: 0"><b>Choices:</b>
100 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
101 <li>absent</li>
102 </ul>
103 </td>
104 <td>
105 <div>Manage the state of the resource. When set to &#x27;absent&#x27;, aggressive and msg_time are set to their default values.</div>
106 </td>
107 </tr>
108 </table>
109 <br/>
110
111
112 Notes
113 -----
114
115 .. note::
116 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
117 - Unsupported for Cisco MDS
118 - Module will fail if the udld feature has not been previously enabled.
119 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
120 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
121 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
122
123
124
125 Examples
126 --------
127
128 .. code-block:: yaml
129
130 # ensure udld aggressive mode is globally disabled and se global message interval is 20
131 - cisco.nxos.nxos_udld:
132 aggressive: disabled
133 msg_time: 20
134 host: '{{ inventory_hostname }}'
135 username: '{{ un }}'
136 password: '{{ pwd }}'
137
138 # Ensure agg mode is globally enabled and msg time is 15
139 - cisco.nxos.nxos_udld:
140 aggressive: enabled
141 msg_time: 15
142 host: '{{ inventory_hostname }}'
143 username: '{{ un }}'
144 password: '{{ pwd }}'
145
146
147
148 Return Values
149 -------------
150 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:
151
152 .. raw:: html
153
154 <table border=0 cellpadding=0 class="documentation-table">
155 <tr>
156 <th colspan="1">Key</th>
157 <th>Returned</th>
158 <th width="100%">Description</th>
159 </tr>
160 <tr>
161 <td colspan="1">
162 <div class="ansibleOptionAnchor" id="return-"></div>
163 <b>changed</b>
164 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
165 <div style="font-size: small">
166 <span style="color: purple">boolean</span>
167 </div>
168 </td>
169 <td>always</td>
170 <td>
171 <div>check to see if a change was made on the device</div>
172 <br/>
173 <div style="font-size: smaller"><b>Sample:</b></div>
174 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">True</div>
175 </td>
176 </tr>
177 <tr>
178 <td colspan="1">
179 <div class="ansibleOptionAnchor" id="return-"></div>
180 <b>end_state</b>
181 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
182 <div style="font-size: small">
183 <span style="color: purple">dictionary</span>
184 </div>
185 </td>
186 <td>always</td>
187 <td>
188 <div>k/v pairs of udld configuration after module execution</div>
189 <br/>
190 <div style="font-size: smaller"><b>Sample:</b></div>
191 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;aggressive&#x27;: &#x27;enabled&#x27;, &#x27;msg_time&#x27;: &#x27;40&#x27;}</div>
192 </td>
193 </tr>
194 <tr>
195 <td colspan="1">
196 <div class="ansibleOptionAnchor" id="return-"></div>
197 <b>existing</b>
198 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
199 <div style="font-size: small">
200 <span style="color: purple">dictionary</span>
201 </div>
202 </td>
203 <td>always</td>
204 <td>
205 <div>k/v pairs of existing udld configuration</div>
206 <br/>
207 <div style="font-size: smaller"><b>Sample:</b></div>
208 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;aggressive&#x27;: &#x27;disabled&#x27;, &#x27;msg_time&#x27;: &#x27;15&#x27;}</div>
209 </td>
210 </tr>
211 <tr>
212 <td colspan="1">
213 <div class="ansibleOptionAnchor" id="return-"></div>
214 <b>proposed</b>
215 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
216 <div style="font-size: small">
217 <span style="color: purple">dictionary</span>
218 </div>
219 </td>
220 <td>always</td>
221 <td>
222 <div>k/v pairs of parameters passed into module</div>
223 <br/>
224 <div style="font-size: smaller"><b>Sample:</b></div>
225 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;aggressive&#x27;: &#x27;enabled&#x27;, &#x27;msg_time&#x27;: &#x27;40&#x27;}</div>
226 </td>
227 </tr>
228 <tr>
229 <td colspan="1">
230 <div class="ansibleOptionAnchor" id="return-"></div>
231 <b>updates</b>
232 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
233 <div style="font-size: small">
234 <span style="color: purple">list</span>
235 </div>
236 </td>
237 <td>always</td>
238 <td>
239 <div>command sent to the device</div>
240 <br/>
241 <div style="font-size: smaller"><b>Sample:</b></div>
242 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;udld message-time 40&#x27;, &#x27;udld aggressive&#x27;]</div>
243 </td>
244 </tr>
245 </table>
246 <br/><br/>
247
248
249 Status
250 ------
251
252
253 Authors
254 ~~~~~~~
255
256 - Jason Edelman (@jedelman8)