�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l m Z d d
l
m Z m Z d e f d � � YZ d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysQ
---
module: onyx_wjh
version_added: "2.9"
author: "Anas Shami (@anass)"
short_description: Configure what-just-happend module
description:
- This module provides declarative management of wjh
on Mellanox ONYX network devices.
notes:
options:
group:
description:
- Name of wjh group.
choices: ['all', 'forwarding', 'acl']
type: str
enabled:
description:
- wjh group status
type: bool
auto_export:
description:
- wjh group auto export pcap file status
type: bool
export_group:
description:
- wjh group auto export group
choices: ['all', 'forwarding', 'acl']
type: str
clear_group:
description:
- clear pcap file by group
choices: ['all', 'user', 'auto-export']
type: str
s�
- name: enable wjh
onyx_wjh:
group: forwarding
enabled: True
- name: disable wjh
onyx_wjh:
group: forwarding
enabled: False
- name: enable auto-export
onyx_wjh:
auto_export: True
export_group: forwarding
- name: disable auto-export
onyx_wjh:
auto_export: False
export_group: forwarding
- name: clear pcap file
onyx_wjh:
clear_group: auto-export
s
commands:
description: The list of configuration mode commands to send to the device.
returned: always
type: list
sample:
- what-just-happend forwarding enable
- what-just-happend auto-export forwarding enable
- clear what-just-happend pcap-file user
N( t
AnsibleModule( t BaseOnyxModulet show_cmdt
OnyxWJHModulec B` s� e Z e j d � Z e j d � Z d Z d Z d Z d d d g Z d d d g Z
d
� Z d � Z d � Z
d
� Z d � Z d d � Z d � Z RS( s( ^no what-just-happened ([a-z]+) enable.*s4 ^no what-just-happened auto-export ([a-z]+) enable.*s {0}what-just-happened {1} enables, {0}what-just-happened auto-export {1} enables'