ansible.builtin.nxos_feature (v2.9.0) — module

Manage features in NX-OS switches.

| "added in version" 2.1 of ansible.builtin"

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

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.9.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
  nxos_feature:
    feature: lacp
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure ospf is disabled
  nxos_feature:
    feature: ospf
    state: disabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ensure vpc is enabled
  nxos_feature:
    feature: vpc
    state: enabled

Inputs

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

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

Outputs

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