cisco.nxos.nxos_vtp_domain (7.0.0) — module

Manages VTP domain 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 domain configuration.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# ENSURE VTP DOMAIN IS CONFIGURED
- cisco.nxos.nxos_vtp_domain:
    domain: ntc
    host: '{{ inventory_hostname }}'
    username: '{{ un }}'
    password: '{{ pwd }}'

Inputs

    
domain:
    description:
    - VTP domain name.
    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 domain after module execution
  returned: always
  sample:
    domain: ntc
    version: '2'
    vtp_password: password
  type: dict
existing:
  description:
  - k/v pairs of existing vtp domain
  returned: always
  sample:
    domain: testing
    version: '2'
    vtp_password: password
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    domain: ntc
  type: dict
updates:
  description: command sent to the device
  returned: always
  sample:
  - vtp domain ntc
  type: list