Manage features in NX-OS switches.
Version added: 1.0.0
- Offers ability to enable and disable features in NX-OS.
Parameter | Choices/Defaults | Comments |
---|---|---|
feature
string
/ required
|
Name of feature.
|
|
state
string
|
|
Desired state of the feature.
|
Note
- Tested against Cisco MDS NX-OS 9.2(2)
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
- For more information on using Ansible to manage Cisco devices see the Cisco integration page.
- name: Ensure lacp is enabled
cisco.nxos.nxos_feature:
feature: lacp
state: enabled
- name: Ensure ospf is disabled
cisco.nxos.nxos_feature:
feature: ospf
state: disabled
- name: Ensure vpc is enabled
cisco.nxos.nxos_feature:
feature: vpc
state: enabled
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
commands
list
|
always |
The set of commands to be sent to the remote device
Sample:
['nv overlay evpn']
|
- Jason Edelman (@jedelman8)
- Gabriele Gerbino (@GGabriele)
- Suhas Bharadwaj (@srbharadwaj)