community.general.onyx_wjh (0.1.1) — module

Configure what-just-happend module

Authors: Anas Shami (@anass)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

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