ansible.builtin.onyx_wjh (v2.9.27) — module

Configure what-just-happend module

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

Authors: Anas Shami (@anass)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

This module provides declarative management of wjh on Mellanox ONYX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: enable wjh
  onyx_wjh:
      group: forwarding
      enabled: True
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: disable wjh
  onyx_wjh:
      group: forwarding
      enabled: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: enable auto-export
  onyx_wjh:
        auto_export: True
        export_group: forwarding
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: disable auto-export
  onyx_wjh:
        auto_export: False
        export_group: forwarding
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: clear pcap file
  onyx_wjh:
        clear_group: auto-export

Inputs

    
group:
    choices:
    - all
    - forwarding
    - acl
    description:
    - Name of wjh group.
    type: str

enabled:
    description:
    - wjh group status
    type: bool

auto_export:
    description:
    - wjh group auto export pcap file status
    type: bool

clear_group:
    choices:
    - all
    - user
    - auto-export
    description:
    - clear pcap file by group
    type: str

export_group:
    choices:
    - all
    - forwarding
    - acl
    description:
    - wjh group auto export group
    type: str

Outputs

commands:
  description: The list of configuration mode commands to send to the device.
  returned: always
  sample:
  - what-just-happend forwarding enable
  - what-just-happend auto-export forwarding enable
  - clear what-just-happend pcap-file user
  type: list