cisco.nxos.nxos_feature (7.0.0) — module

Manage features in NX-OS switches.

| "added in version" 1.0.0 of cisco.nxos"

Authors: Jason Edelman (@jedelman8), Gabriele Gerbino (@GGabriele), Suhas Bharadwaj (@srbharadwaj)

Install collection

Install with ansible-galaxy collection install cisco.nxos:==7.0.0


Add to requirements.yml

  collections:
    - name: cisco.nxos
      version: 7.0.0

Description

Offers ability to enable and disable features in NX-OS.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure lacp is enabled
  cisco.nxos.nxos_feature:
    feature: lacp
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure ospf is disabled
  cisco.nxos.nxos_feature:
    feature: ospf
    state: disabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure vpc is enabled
  cisco.nxos.nxos_feature:
    feature: vpc
    state: enabled

Inputs

    
state:
    choices:
    - enabled
    - disabled
    default: enabled
    description:
    - Desired state of the feature.
    required: false
    type: str

feature:
    description:
    - Name of feature.
    required: true
    type: str

Outputs

commands:
  description: The set of commands to be sent to the remote device
  returned: always
  sample:
  - nv overlay evpn
  type: list