Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_vtp_domain_module.rst

raw
1 .. _cisco.nxos.nxos_vtp_domain_module:
2
3
4 **************************
5 cisco.nxos.nxos_vtp_domain
6 **************************
7
8 **Manages VTP domain 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 domain 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>domain</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>VTP domain name.</div>
50 </td>
51 </tr>
52 </table>
53 <br/>
54
55
56 Notes
57 -----
58
59 .. note::
60 - Tested against NXOSv 7.3.(0)D1(1) on VIRL
61 - Unsupported for Cisco MDS
62 - VTP feature must be active on the device to use this module.
63 - This module is used to manage only VTP domain names.
64 - VTP domain names are case-sensible.
65 - If it's never been configured before, VTP version is set to 1 by default. Otherwise, it leaves the previous configured version untouched. Use :ref:`cisco.nxos.nxos_vtp_version <cisco.nxos.nxos_vtp_version_module>` to change it.
66 - 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.
67 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
68 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
69 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
70
71
72
73 Examples
74 --------
75
76 .. code-block:: yaml
77
78 # ENSURE VTP DOMAIN IS CONFIGURED
79 - cisco.nxos.nxos_vtp_domain:
80 domain: ntc
81 host: '{{ inventory_hostname }}'
82 username: '{{ un }}'
83 password: '{{ pwd }}'
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 domain 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;ntc&#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 domain</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;2&#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;domain&#x27;: &#x27;ntc&#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 domain ntc&#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)