Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_vtp_version_module.rst

raw
1 .. _cisco.nxos.nxos_vtp_version_module:
2
3
4 ***************************
5 cisco.nxos.nxos_vtp_version
6 ***************************
7
8 **Manages VTP version 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 version 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>version</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 <ul style="margin: 0; padding: 0"><b>Choices:</b>
48 <li>1</li>
49 <li>2</li>
50 <li>3</li>
51 </ul>
52 </td>
53 <td>
54 <div>VTP version number.</div>
55 </td>
56 </tr>
57 </table>
58 <br/>
59
60
61 Notes
62 -----
63
64 .. note::
65 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
66 - Unsupported for Cisco MDS
67 - VTP feature must be active on the device to use this module.
68 - This module is used to manage only VTP version.
69 - Use this in combination with :ref:`cisco.nxos.nxos_vtp_password <cisco.nxos.nxos_vtp_password_module>` and :ref:`cisco.nxos.nxos_vtp_version <cisco.nxos.nxos_vtp_version_module>` to fully manage VTP operations.
70 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
71 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
72 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
73
74
75
76 Examples
77 --------
78
79 .. code-block:: yaml
80
81 # ENSURE VTP VERSION IS 2
82 - cisco.nxos.nxos_vtp_version:
83 version: 2
84
85
86
87 Return Values
88 -------------
89 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:
90
91 .. raw:: html
92
93 <table border=0 cellpadding=0 class="documentation-table">
94 <tr>
95 <th colspan="1">Key</th>
96 <th>Returned</th>
97 <th width="100%">Description</th>
98 </tr>
99 <tr>
100 <td colspan="1">
101 <div class="ansibleOptionAnchor" id="return-"></div>
102 <b>changed</b>
103 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
104 <div style="font-size: small">
105 <span style="color: purple">boolean</span>
106 </div>
107 </td>
108 <td>always</td>
109 <td>
110 <div>check to see if a change was made on the device</div>
111 <br/>
112 <div style="font-size: smaller"><b>Sample:</b></div>
113 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">True</div>
114 </td>
115 </tr>
116 <tr>
117 <td colspan="1">
118 <div class="ansibleOptionAnchor" id="return-"></div>
119 <b>end_state</b>
120 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
121 <div style="font-size: small">
122 <span style="color: purple">dictionary</span>
123 </div>
124 </td>
125 <td>always</td>
126 <td>
127 <div>k/v pairs of vtp after module execution</div>
128 <br/>
129 <div style="font-size: smaller"><b>Sample:</b></div>
130 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;domain&#x27;: &#x27;testing&#x27;, &#x27;version&#x27;: &#x27;2&#x27;, &#x27;vtp_password&#x27;: &#x27;password&#x27;}</div>
131 </td>
132 </tr>
133 <tr>
134 <td colspan="1">
135 <div class="ansibleOptionAnchor" id="return-"></div>
136 <b>existing</b>
137 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
138 <div style="font-size: small">
139 <span style="color: purple">dictionary</span>
140 </div>
141 </td>
142 <td>always</td>
143 <td>
144 <div>k/v pairs of existing vtp</div>
145 <br/>
146 <div style="font-size: smaller"><b>Sample:</b></div>
147 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;domain&#x27;: &#x27;testing&#x27;, &#x27;version&#x27;: &#x27;1&#x27;, &#x27;vtp_password&#x27;: &#x27;password&#x27;}</div>
148 </td>
149 </tr>
150 <tr>
151 <td colspan="1">
152 <div class="ansibleOptionAnchor" id="return-"></div>
153 <b>proposed</b>
154 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
155 <div style="font-size: small">
156 <span style="color: purple">dictionary</span>
157 </div>
158 </td>
159 <td>always</td>
160 <td>
161 <div>k/v pairs of parameters passed into module</div>
162 <br/>
163 <div style="font-size: smaller"><b>Sample:</b></div>
164 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">{&#x27;version&#x27;: &#x27;2&#x27;}</div>
165 </td>
166 </tr>
167 <tr>
168 <td colspan="1">
169 <div class="ansibleOptionAnchor" id="return-"></div>
170 <b>updates</b>
171 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
172 <div style="font-size: small">
173 <span style="color: purple">list</span>
174 </div>
175 </td>
176 <td>always</td>
177 <td>
178 <div>command sent to the device</div>
179 <br/>
180 <div style="font-size: smaller"><b>Sample:</b></div>
181 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;vtp version 2&#x27;]</div>
182 </td>
183 </tr>
184 </table>
185 <br/><br/>
186
187
188 Status
189 ------
190
191
192 Authors
193 ~~~~~~~
194
195 - Gabriele Gerbino (@GGabriele)