Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/netvisor/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_connection_stats_settings.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	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(tpn_clitrun_clitbooleanArgsc+C`s|tdd�}tdtdtdtdd�dtdtddd	|j��d
tdtdd�dtdtdd�d
tdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd��dd
dd
ddddddddddddgg�}|jd}|jd}|jd
}|jd}|jd
}|jd}|jd}|jd}	|jd}
|jd}|jd}|jd}
|jd}|jd}|jd}|jd}|jd}|jd}||}t||�}|dkrh|d|7}|t|dd�7}|t|dd �7}|t|d!d"�7}|t|
d#d$�7}|t|d%d&�7}|r|d'|7}n|r�|d(|7}n|	r�|d)|	7}n|
r�|d*|
7}n|r�|d+|7}n|r�|d,|7}n|r	|d-|7}n|r |d.|7}n|r7|d/|7}n|rN|d0|7}n|rh|d1|7}qhnt|||�d2S(3s' This section is for arguments parsing tupdates connection-stats-settings-modifyt
argument_spectpn_cliswitchtrequiredttypetstrtstatetchoicest	pn_enabletbooltpn_connection_backup_enablet!pn_client_server_stats_max_memoryt"pn_connection_stats_log_disk_spacet!pn_client_server_stats_log_enabletpn_service_stat_max_memoryt pn_connection_stats_log_intervalt$pn_fabric_connection_backup_intervaltpn_connection_backup_intervaltpn_connection_stats_log_enabletpn_fabric_connection_max_memoryt"pn_fabric_connection_backup_enablet%pn_client_server_stats_log_disk_spacetpn_connection_max_memorytpn_connection_stats_max_memoryt#pn_client_server_stats_log_intervaltrequired_one_ofs %s tenabletdisablesconnection-backup-enablesconnection-backup-disablesclient-server-stats-log-enablesclient-server-stats-log-disablesconnection-stats-log-enablesconnection-stats-log-disablesfabric-connection-backup-enables fabric-connection-backup-disables  client-server-stats-max-memory s! connection-stats-log-disk-space s service-stat-max-memory s connection-stats-log-interval s# fabric-connection-backup-interval s connection-backup-interval s fabric-connection-max-memory s$ client-server-stats-log-disk-space s connection-max-memory s connection-stats-max-memory s" client-server-stats-log-interval N(	tdictRtFalsetTruetkeystparamsR	RR
(t	state_maptmodulet	cliswitchRR&tconnection_backup_enabletclient_server_stats_max_memorytconnection_stats_log_disk_spacetclient_server_stats_log_enabletservice_stat_max_memorytconnection_stats_log_intervalt!fabric_connection_backup_intervaltconnection_backup_intervaltconnection_stats_log_enabletfabric_connection_max_memorytfabric_connection_backup_enablet"client_server_stats_log_disk_spacetconnection_max_memorytconnection_stats_max_memoryt client_server_stats_log_intervaltcommandtcli((sa/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_connection_stats_settings.pytmain�s�						


















t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt-ansible.module_utils.network.netvisor.pn_nvosR	R
RRAt__name__(((sa/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_connection_stats_settings.pyt<module>s


i	o

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]