.. _cisco.nxos.nxos_feature_module: *********************** cisco.nxos.nxos_feature *********************** **Manage features in NX-OS switches.** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Offers ability to enable and disable features in NX-OS. Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
feature
string / required
Name of feature.
state
string
    Choices:
  • enabled ←
  • disabled
Desired state of the feature.

Notes ----- .. 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 ` - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide ` - For more information on using Ansible to manage Cisco devices see the `Cisco integration page `_. Examples -------- .. code-block:: yaml - 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 Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
Key Returned Description
commands
list
always
The set of commands to be sent to the remote device

Sample:
['nv overlay evpn']


Status ------ Authors ~~~~~~~ - Jason Edelman (@jedelman8) - Gabriele Gerbino (@GGabriele) - Suhas Bharadwaj (@srbharadwaj)