Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_feature_module.rst

raw
1 .. _cisco.nxos.nxos_feature_module:
2
3
4 ***********************
5 cisco.nxos.nxos_feature
6 ***********************
7
8 **Manage features in NX-OS switches.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Offers ability to enable and disable features in NX-OS.
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>feature</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>Name of feature.</div>
50 </td>
51 </tr>
52 <tr>
53 <td colspan="1">
54 <div class="ansibleOptionAnchor" id="parameter-"></div>
55 <b>state</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 </div>
60 </td>
61 <td>
62 <ul style="margin: 0; padding: 0"><b>Choices:</b>
63 <li><div style="color: blue"><b>enabled</b>&nbsp;&larr;</div></li>
64 <li>disabled</li>
65 </ul>
66 </td>
67 <td>
68 <div>Desired state of the feature.</div>
69 </td>
70 </tr>
71 </table>
72 <br/>
73
74
75 Notes
76 -----
77
78 .. note::
79 - Tested against Cisco MDS NX-OS 9.2(2)
80 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
81 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
82 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
83
84
85
86 Examples
87 --------
88
89 .. code-block:: yaml
90
91 - name: Ensure lacp is enabled
92 cisco.nxos.nxos_feature:
93 feature: lacp
94 state: enabled
95
96 - name: Ensure ospf is disabled
97 cisco.nxos.nxos_feature:
98 feature: ospf
99 state: disabled
100
101 - name: Ensure vpc is enabled
102 cisco.nxos.nxos_feature:
103 feature: vpc
104 state: enabled
105
106
107
108 Return Values
109 -------------
110 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:
111
112 .. raw:: html
113
114 <table border=0 cellpadding=0 class="documentation-table">
115 <tr>
116 <th colspan="1">Key</th>
117 <th>Returned</th>
118 <th width="100%">Description</th>
119 </tr>
120 <tr>
121 <td colspan="1">
122 <div class="ansibleOptionAnchor" id="return-"></div>
123 <b>commands</b>
124 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
125 <div style="font-size: small">
126 <span style="color: purple">list</span>
127 </div>
128 </td>
129 <td>always</td>
130 <td>
131 <div>The set of commands to be sent to the remote device</div>
132 <br/>
133 <div style="font-size: smaller"><b>Sample:</b></div>
134 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;nv overlay evpn&#x27;]</div>
135 </td>
136 </tr>
137 </table>
138 <br/><br/>
139
140
141 Status
142 ------
143
144
145 Authors
146 ~~~~~~~
147
148 - Jason Edelman (@jedelman8)
149 - Gabriele Gerbino (@GGabriele)
150 - Suhas Bharadwaj (@srbharadwaj)