mellanox.onyx.onyx_wjh (1.0.0) — module

Configure what-just-happend module

Authors: Anas Shami (@anass)

Install collection

Install with ansible-galaxy collection install mellanox.onyx:==1.0.0


Add to requirements.yml

  collections:
    - name: mellanox.onyx
      version: 1.0.0

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