| 1 |
.. _cisco.nxos.nxos_vsan_module: |
| 2 |
|
| 3 |
|
| 4 |
******************** |
| 5 |
cisco.nxos.nxos_vsan |
| 6 |
******************** |
| 7 |
|
| 8 |
**Configuration of vsan for Cisco NXOS MDS Switches.** |
| 9 |
|
| 10 |
|
| 11 |
Version added: 1.0.0 |
| 12 |
|
| 13 |
.. contents:: |
| 14 |
:local: |
| 15 |
:depth: 1 |
| 16 |
|
| 17 |
|
| 18 |
Synopsis |
| 19 |
-------- |
| 20 |
- Configuration of vsan for Cisco MDS NXOS. |
| 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="2">Parameter</th> |
| 33 |
<th>Choices/<font color="blue">Defaults</font></th> |
| 34 |
<th width="100%">Comments</th> |
| 35 |
</tr> |
| 36 |
<tr> |
| 37 |
<td colspan="2"> |
| 38 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 39 |
<b>vsan</b> |
| 40 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 41 |
<div style="font-size: small"> |
| 42 |
<span style="color: purple">list</span> |
| 43 |
/ <span style="color: purple">elements=dictionary</span> |
| 44 |
</div> |
| 45 |
</td> |
| 46 |
<td> |
| 47 |
</td> |
| 48 |
<td> |
| 49 |
<div>List of vsan details to be added or removed</div> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td class="elbow-placeholder"></td> |
| 54 |
<td colspan="1"> |
| 55 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 56 |
<b>id</b> |
| 57 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 58 |
<div style="font-size: small"> |
| 59 |
<span style="color: purple">integer</span> |
| 60 |
/ <span style="color: red">required</span> |
| 61 |
</div> |
| 62 |
</td> |
| 63 |
<td> |
| 64 |
</td> |
| 65 |
<td> |
| 66 |
<div>Vsan id</div> |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
<tr> |
| 70 |
<td class="elbow-placeholder"></td> |
| 71 |
<td colspan="1"> |
| 72 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 73 |
<b>interface</b> |
| 74 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 75 |
<div style="font-size: small"> |
| 76 |
<span style="color: purple">list</span> |
| 77 |
/ <span style="color: purple">elements=string</span> |
| 78 |
</div> |
| 79 |
</td> |
| 80 |
<td> |
| 81 |
</td> |
| 82 |
<td> |
| 83 |
<div>List of vsan's interfaces to be added</div> |
| 84 |
</td> |
| 85 |
</tr> |
| 86 |
<tr> |
| 87 |
<td class="elbow-placeholder"></td> |
| 88 |
<td colspan="1"> |
| 89 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 90 |
<b>name</b> |
| 91 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 92 |
<div style="font-size: small"> |
| 93 |
<span style="color: purple">string</span> |
| 94 |
</div> |
| 95 |
</td> |
| 96 |
<td> |
| 97 |
</td> |
| 98 |
<td> |
| 99 |
<div>Name of the vsan</div> |
| 100 |
</td> |
| 101 |
</tr> |
| 102 |
<tr> |
| 103 |
<td class="elbow-placeholder"></td> |
| 104 |
<td colspan="1"> |
| 105 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 106 |
<b>remove</b> |
| 107 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 108 |
<div style="font-size: small"> |
| 109 |
<span style="color: purple">boolean</span> |
| 110 |
</div> |
| 111 |
</td> |
| 112 |
<td> |
| 113 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 114 |
<li>no</li> |
| 115 |
<li>yes</li> |
| 116 |
</ul> |
| 117 |
</td> |
| 118 |
<td> |
| 119 |
<div>Removes the vsan if True</div> |
| 120 |
</td> |
| 121 |
</tr> |
| 122 |
<tr> |
| 123 |
<td class="elbow-placeholder"></td> |
| 124 |
<td colspan="1"> |
| 125 |
<div class="ansibleOptionAnchor" id="parameter-"></div> |
| 126 |
<b>suspend</b> |
| 127 |
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a> |
| 128 |
<div style="font-size: small"> |
| 129 |
<span style="color: purple">boolean</span> |
| 130 |
</div> |
| 131 |
</td> |
| 132 |
<td> |
| 133 |
<ul style="margin: 0; padding: 0"><b>Choices:</b> |
| 134 |
<li>no</li> |
| 135 |
<li>yes</li> |
| 136 |
</ul> |
| 137 |
</td> |
| 138 |
<td> |
| 139 |
<div>suspend the vsan if True</div> |
| 140 |
</td> |
| 141 |
</tr> |
| 142 |
|
| 143 |
</table> |
| 144 |
<br/> |
| 145 |
|
| 146 |
|
| 147 |
Notes |
| 148 |
----- |
| 149 |
|
| 150 |
.. note:: |
| 151 |
- Tested against Cisco MDS NX-OS 8.4(1) |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
Examples |
| 156 |
-------- |
| 157 |
|
| 158 |
.. code-block:: yaml |
| 159 |
|
| 160 |
- name: Test that vsan module works |
| 161 |
cisco.nxos.nxos_vsan: |
| 162 |
vsan: |
| 163 |
- id: 922 |
| 164 |
interface: |
| 165 |
- fc1/1 |
| 166 |
- fc1/2 |
| 167 |
- port-channel 1 |
| 168 |
name: vsan-SAN-A |
| 169 |
remove: false |
| 170 |
suspend: false |
| 171 |
- id: 923 |
| 172 |
interface: |
| 173 |
- fc1/11 |
| 174 |
- fc1/21 |
| 175 |
- port-channel 2 |
| 176 |
name: vsan-SAN-B |
| 177 |
remove: false |
| 178 |
suspend: true |
| 179 |
- id: 1923 |
| 180 |
name: vsan-SAN-Old |
| 181 |
remove: true |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
Return Values |
| 186 |
------------- |
| 187 |
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: |
| 188 |
|
| 189 |
.. raw:: html |
| 190 |
|
| 191 |
<table border=0 cellpadding=0 class="documentation-table"> |
| 192 |
<tr> |
| 193 |
<th colspan="1">Key</th> |
| 194 |
<th>Returned</th> |
| 195 |
<th width="100%">Description</th> |
| 196 |
</tr> |
| 197 |
<tr> |
| 198 |
<td colspan="1"> |
| 199 |
<div class="ansibleOptionAnchor" id="return-"></div> |
| 200 |
<b>commands</b> |
| 201 |
<a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a> |
| 202 |
<div style="font-size: small"> |
| 203 |
<span style="color: purple">list</span> |
| 204 |
</div> |
| 205 |
</td> |
| 206 |
<td>always</td> |
| 207 |
<td> |
| 208 |
<div>commands sent to the device</div> |
| 209 |
<br/> |
| 210 |
<div style="font-size: smaller"><b>Sample:</b></div> |
| 211 |
<div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">['terminal dont-ask', 'vsan database', 'vsan 922 interface fc1/40', 'vsan 922 interface port-channel 155', 'no terminal dont-ask']</div> |
| 212 |
</td> |
| 213 |
</tr> |
| 214 |
</table> |
| 215 |
<br/><br/> |
| 216 |
|
| 217 |
|
| 218 |
Status |
| 219 |
------ |
| 220 |
|
| 221 |
|
| 222 |
Authors |
| 223 |
~~~~~~~ |
| 224 |
|
| 225 |
- Suhas Bharadwaj (@srbharadwaj) ([email protected]) |