Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_vtp_password_module.rst

raw
1 .. _cisco.nxos.nxos_vtp_password_module:
2
3
4 ****************************
5 cisco.nxos.nxos_vtp_password
6 ****************************
7
8 **Manages VTP password configuration.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manages VTP password configuration.
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>state</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><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
48 <li>absent</li>
49 </ul>
50 </td>
51 <td>
52 <div>Manage the state of the resource</div>
53 </td>
54 </tr>
55 <tr>
56 <td colspan="1">
57 <div class="ansibleOptionAnchor" id="parameter-"></div>
58 <b>vtp_password</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>VTP password</div>
68 </td>
69 </tr>
70 </table>
71 <br/>
72
73
74 Notes
75 -----
76
77 .. note::
78 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
79 - Unsupported for Cisco MDS
80 - VTP feature must be active on the device to use this module.
81 - This module is used to manage only VTP passwords.
82 - Use this in combination with :ref:`cisco.nxos.nxos_vtp_domain <cisco.nxos.nxos_vtp_domain_module>` and :ref:`cisco.nxos.nxos_vtp_version <cisco.nxos.nxos_vtp_version_module>` to fully manage VTP operations.
83 - You can set/remove password only if a VTP domain already exist.
84 - If ``state=absent`` and no ``vtp_password`` is provided, it remove the current VTP password.
85 - If ``state=absent`` and ``vtp_password`` is provided, the proposed ``vtp_password`` has to match the existing one in order to remove it.
86 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
87 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
88 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
89
90
91
92 Examples
93 --------
94
95 .. code-block:: yaml
96
97 # ENSURE VTP PASSWORD IS SET
98 - cisco.nxos.nxos_vtp_password:
99 state: present
100 host: '{{ inventory_hostname }}'
101 username: '{{ un }}'
102 password: '{{ pwd }}'
103
104 # ENSURE VTP PASSWORD IS REMOVED
105 - cisco.nxos.nxos_vtp_password:
106 state: absent
107 host: '{{ inventory_hostname }}'
108 username: '{{ un }}'
109 password: '{{ pwd }}'
110
111
112
113 Return Values
114 -------------
115 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:
116
117 .. raw:: html
118
119 <table border=0 cellpadding=0 class="documentation-table">
120 <tr>
121 <th colspan="1">Key</th>
122 <th>Returned</th>
123 <th width="100%">Description</th>
124 </tr>
125 <tr>
126 <td colspan="1">
127 <div class="ansibleOptionAnchor" id="return-"></div>
128 <b>changed</b>
129 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
130 <div style="font-size: small">
131 <span style="color: purple">boolean</span>
132 </div>
133 </td>
134 <td>always</td>
135 <td>
136 <div>check to see if a change was made on the device</div>
137 <br/>
138 <div style="font-size: smaller"><b>Sample:</b></div>
139 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">True</div>
140 </td>
141 </tr>
142 <tr>
143 <td colspan="1">
144 <div class="ansibleOptionAnchor" id="return-"></div>
145 <b>end_state</b>
146 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
147 <div style="font-size: small">
148 <span style="color: purple">dictionary</span>
149 </div>
150 </td>
151 <td>always</td>
152 <td>
153 <div>k/v pairs of vtp after module execution</div>
154 <br/>
155 <div style="font-size: smaller"><b>Sample:</b></div>
156 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;domain&#x27;: &#x27;ntc&#x27;, &#x27;version&#x27;: &#x27;1&#x27;, &#x27;vtp_password&#x27;: &#x27;new_ntc&#x27;}</div>
157 </td>
158 </tr>
159 <tr>
160 <td colspan="1">
161 <div class="ansibleOptionAnchor" id="return-"></div>
162 <b>existing</b>
163 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
164 <div style="font-size: small">
165 <span style="color: purple">dictionary</span>
166 </div>
167 </td>
168 <td>always</td>
169 <td>
170 <div>k/v pairs of existing vtp</div>
171 <br/>
172 <div style="font-size: smaller"><b>Sample:</b></div>
173 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;domain&#x27;: &#x27;ntc&#x27;, &#x27;version&#x27;: &#x27;1&#x27;, &#x27;vtp_password&#x27;: &#x27;ntc&#x27;}</div>
174 </td>
175 </tr>
176 <tr>
177 <td colspan="1">
178 <div class="ansibleOptionAnchor" id="return-"></div>
179 <b>proposed</b>
180 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
181 <div style="font-size: small">
182 <span style="color: purple">dictionary</span>
183 </div>
184 </td>
185 <td>always</td>
186 <td>
187 <div>k/v pairs of parameters passed into module</div>
188 <br/>
189 <div style="font-size: smaller"><b>Sample:</b></div>
190 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;vtp_password&#x27;: &#x27;new_ntc&#x27;}</div>
191 </td>
192 </tr>
193 <tr>
194 <td colspan="1">
195 <div class="ansibleOptionAnchor" id="return-"></div>
196 <b>updates</b>
197 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
198 <div style="font-size: small">
199 <span style="color: purple">list</span>
200 </div>
201 </td>
202 <td>always</td>
203 <td>
204 <div>command sent to the device</div>
205 <br/>
206 <div style="font-size: smaller"><b>Sample:</b></div>
207 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;vtp password new_ntc&#x27;]</div>
208 </td>
209 </tr>
210 </table>
211 <br/><br/>
212
213
214 Status
215 ------
216
217
218 Authors
219 ~~~~~~~
220
221 - Gabriele Gerbino (@GGabriele)