Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_udld_interface_module.rst

raw
1 .. _cisco.nxos.nxos_udld_interface_module:
2
3
4 ******************************
5 cisco.nxos.nxos_udld_interface
6 ******************************
7
8 **Manages UDLD interface 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 interface 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>interface</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 / <span style="color: red">required</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>FULL name of the interface, i.e. Ethernet1/1-</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>enabled</li>
65 <li>disabled</li>
66 <li>aggressive</li>
67 </ul>
68 </td>
69 <td>
70 <div>Manages UDLD mode for an interface.</div>
71 </td>
72 </tr>
73 <tr>
74 <td colspan="1">
75 <div class="ansibleOptionAnchor" id="parameter-"></div>
76 <b>state</b>
77 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
78 <div style="font-size: small">
79 <span style="color: purple">string</span>
80 </div>
81 </td>
82 <td>
83 <ul style="margin: 0; padding: 0"><b>Choices:</b>
84 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
85 <li>absent</li>
86 </ul>
87 </td>
88 <td>
89 <div>Manage the state of the resource.</div>
90 </td>
91 </tr>
92 </table>
93 <br/>
94
95
96 Notes
97 -----
98
99 .. note::
100 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
101 - Unsupported for Cisco MDS
102 - Feature UDLD must be enabled on the device to use this module.
103 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
104 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
105 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
106
107
108
109 Examples
110 --------
111
112 .. code-block:: yaml
113
114 # ensure Ethernet1/1 is configured to be in aggressive mode
115 - cisco.nxos.nxos_udld_interface:
116 interface: Ethernet1/1
117 mode: aggressive
118 state: present
119 host: '{{ inventory_hostname }}'
120 username: '{{ un }}'
121 password: '{{ pwd }}'
122
123 # Remove the aggressive config only if it's currently in aggressive mode and then disable udld (switch default)
124 - cisco.nxos.nxos_udld_interface:
125 interface: Ethernet1/1
126 mode: aggressive
127 state: absent
128 host: '{{ inventory_hostname }}'
129 username: '{{ un }}'
130 password: '{{ pwd }}'
131
132 # ensure Ethernet1/1 has aggressive mode enabled
133 - cisco.nxos.nxos_udld_interface:
134 interface: Ethernet1/1
135 mode: enabled
136 host: '{{ inventory_hostname }}'
137 username: '{{ un }}'
138 password: '{{ pwd }}'
139
140
141
142 Return Values
143 -------------
144 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:
145
146 .. raw:: html
147
148 <table border=0 cellpadding=0 class="documentation-table">
149 <tr>
150 <th colspan="1">Key</th>
151 <th>Returned</th>
152 <th width="100%">Description</th>
153 </tr>
154 <tr>
155 <td colspan="1">
156 <div class="ansibleOptionAnchor" id="return-"></div>
157 <b>changed</b>
158 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
159 <div style="font-size: small">
160 <span style="color: purple">boolean</span>
161 </div>
162 </td>
163 <td>always</td>
164 <td>
165 <div>check to see if a change was made on the device</div>
166 <br/>
167 <div style="font-size: smaller"><b>Sample:</b></div>
168 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">True</div>
169 </td>
170 </tr>
171 <tr>
172 <td colspan="1">
173 <div class="ansibleOptionAnchor" id="return-"></div>
174 <b>end_state</b>
175 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
176 <div style="font-size: small">
177 <span style="color: purple">dictionary</span>
178 </div>
179 </td>
180 <td>always</td>
181 <td>
182 <div>k/v pairs of configuration after module execution</div>
183 <br/>
184 <div style="font-size: smaller"><b>Sample:</b></div>
185 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;mode&#x27;: &#x27;enabled&#x27;}</div>
186 </td>
187 </tr>
188 <tr>
189 <td colspan="1">
190 <div class="ansibleOptionAnchor" id="return-"></div>
191 <b>existing</b>
192 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
193 <div style="font-size: small">
194 <span style="color: purple">dictionary</span>
195 </div>
196 </td>
197 <td>always</td>
198 <td>
199 <div>k/v pairs of existing configuration</div>
200 <br/>
201 <div style="font-size: smaller"><b>Sample:</b></div>
202 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;mode&#x27;: &#x27;aggressive&#x27;}</div>
203 </td>
204 </tr>
205 <tr>
206 <td colspan="1">
207 <div class="ansibleOptionAnchor" id="return-"></div>
208 <b>proposed</b>
209 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
210 <div style="font-size: small">
211 <span style="color: purple">dictionary</span>
212 </div>
213 </td>
214 <td>always</td>
215 <td>
216 <div>k/v pairs of parameters passed into module</div>
217 <br/>
218 <div style="font-size: smaller"><b>Sample:</b></div>
219 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;mode&#x27;: &#x27;enabled&#x27;}</div>
220 </td>
221 </tr>
222 <tr>
223 <td colspan="1">
224 <div class="ansibleOptionAnchor" id="return-"></div>
225 <b>updates</b>
226 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
227 <div style="font-size: small">
228 <span style="color: purple">list</span>
229 </div>
230 </td>
231 <td>always</td>
232 <td>
233 <div>command sent to the device</div>
234 <br/>
235 <div style="font-size: smaller"><b>Sample:</b></div>
236 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;interface ethernet1/33&#x27;, &#x27;no udld aggressive ; no udld disable&#x27;]</div>
237 </td>
238 </tr>
239 </table>
240 <br/><br/>
241
242
243 Status
244 ------
245
246
247 Authors
248 ~~~~~~~
249
250 - Jason Edelman (@jedelman8)