�
�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
m Z d d l m
Z
m Z m Z 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_bys>
---
module: pn_connection_stats_settings
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: "2.8"
short_description: CLI command to modify connection-stats-settings
description:
- This module can be used to modify the settings for collecting statistical
data about connections.
options:
pn_cliswitch:
description:
- Target switch to run the CLI on.
required: False
type: str
state:
description:
- State the action to perform. Use C(update) to modify the
connection-stats-settings.
required: True
type: str
choices: ['update']
pn_enable:
description:
- Enable or disable collecting connections statistics.
required: False
type: bool
pn_connection_backup_enable:
description:
- Enable backup for connection statistics collection.
required: False
type: bool
pn_client_server_stats_max_memory:
description:
- maximum memory for client server statistics.
required: False
type: str
pn_connection_stats_log_disk_space:
description:
- disk-space allocated for statistics (including rotated log files).
required: False
type: str
pn_client_server_stats_log_enable:
description:
- Enable or disable statistics.
required: False
type: bool
pn_service_stat_max_memory:
description:
- maximum memory allowed for service statistics.
required: False
type: str
pn_connection_stats_log_interval:
description:
- interval to collect statistics.
required: False
type: str
pn_fabric_connection_backup_interval:
description:
- backup interval for fabric connection statistics collection.
required: False
type: str
pn_connection_backup_interval:
description:
- backup interval for connection statistics collection.
required: False
type: str
pn_connection_stats_log_enable:
description:
- enable or disable statistics.
required: False
type: bool
pn_fabric_connection_max_memory:
description:
- maximum memory allowed for fabric connection statistics.
required: False
type: str
pn_fabric_connection_backup_enable:
description:
- enable backup for fabric connection statistics collection.
required: False
type: bool
pn_client_server_stats_log_disk_space:
description:
- disk-space allocated for statistics (including rotated log files).
required: False
type: str
pn_connection_max_memory:
description:
- maximum memory allowed for connection statistics.
required: False
type: str
pn_connection_stats_max_memory:
description:
- maximum memory allowed for connection statistics.
required: False
type: str
pn_client_server_stats_log_interval:
description:
- interval to collect statistics.
required: False
type: str
sG
- name: "Modify connection stats settings"
pn_connection_stats_settings:
pn_cliswitch: "sw01"
state: "update"
pn_enable: False
pn_fabric_connection_max_memory: "1000"
- name: "Modify connection stats settings"
pn_connection_stats_settings:
pn_cliswitch: "sw01"
state: "update"
pn_enable: True
s�
command:
description: the CLI command run on the target node.
returned: always
type: str
stdout:
description: set of responses from the connection-stats-settings command.
returned: always
type: list
stderr:
description: set of error responses from the connection-stats-settings command.
returned: on error
type: list
changed:
description: indicates whether the CLI caused changes on the target.
returned: always
type: bool
( t
AnsibleModule( t pn_clit run_clit booleanArgsc + C` s| t d d � } t d t d t d t d d � d t d t d d d | j � � d
t d t d d � d t d t d d � d
t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � d t d t d d � � d d
d d
d d d d d d d d d d d d g g � } | j d } | j d } | j d
} | j d } | j d
} | j d } | j d } | j d } | j d }
| j d } | j d } | j d }
| j d } | j d } | j d } | j d } | j d } | j d } | | } t | | � } | d k rh| d | 7} | t | d d � 7} | t | d d � 7} | t | d! d"