cisco.nxos.nxos_vtp_version (7.0.0) — module

Manages VTP version configuration.

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

Authors: Gabriele Gerbino (@GGabriele)

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

Manages VTP version configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ENSURE VTP VERSION IS 2
- cisco.nxos.nxos_vtp_version:
    version: 2

Inputs

    
version:
    choices:
    - '1'
    - '2'
    - '3'
    description:
    - VTP version number.
    required: true
    type: str

Outputs

changed:
  description: check to see if a change was made on the device
  returned: always
  sample: true
  type: bool
end_state:
  description: k/v pairs of vtp after module execution
  returned: always
  sample:
    domain: testing
    version: '2'
    vtp_password: password
  type: dict
existing:
  description:
  - k/v pairs of existing vtp
  returned: always
  sample:
    domain: testing
    version: '1'
    vtp_password: password
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    version: '2'
  type: dict
updates:
  description: command sent to the device
  returned: always
  sample:
  - vtp version 2
  type: list