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_cpu_mgmt_class.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: pn_cpu_mgmt_class
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: 2.8
short_description: CLI command to modify cpu-mgmt-class
description:
  - This module can we used to update mgmt port ingress policers.
options:
  pn_cliswitch:
    description:
      - Target switch to run the CLI on.
    type: str
    required: false
  state:
    description:
      - State the action to perform. Use C(update) to modify cpu-mgmt-class.
    type: str
    required: true
    choices: ['update']
  pn_burst_size:
    description:
      - ingress traffic burst size (bytes) or default.
    required: false
    type: str
  pn_name:
    description:
      - mgmt port ingress traffic class.
    type: str
    required: false
    choices: ['arp', 'icmp', 'ssh', 'snmp', 'fabric', 'bcast', 'nfs',
              'web', 'web-ssl', 'net-api']
  pn_rate_limit:
    description:
      - ingress rate limit on mgmt port(bps) or unlimited.
    type: str
    required: false
s2
- name: cpu mgmt class modify ingress policers
  pn_cpu_mgmt_class:
    pn_cliswitch: "sw01"
    state: "update"
    pn_name: "icmp"
    pn_rate_limit: "10000"
    pn_burst_size: "14000"

- name: cpu mgmt class modify ingress policers
  pn_cpu_mgmt_class:
    pn_cliswitch: "sw01"
    state: "update"
    pn_name: "snmp"
    pn_burst_size: "8000"
    pn_rate_limit: "100000"

- name: cpu mgmt class modify ingress policers
  pn_cpu_mgmt_class:
    pn_cliswitch: "sw01"
    state: "update"
    pn_name: "web"
    pn_rate_limit: "10000"
    pn_burst_size: "1000"
s�
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stdout:
  description: set of responses from the cpu-mgmt-class command.
  returned: always
  type: list
stderr:
  description: set of error responses from the cpu-mgmt-class 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_clic	C`sztdd�}tdtdtdtdd�dtdtddd	|j��d
tdtdd�dtdtddd	dd
ddddddddg
�dtdtdd��ddddd
dggg�}|jd}|jd}|jd
}|jd}|jd}||}t||�}|dkrf|d||f7}|d||f7}nt|||�dS(s' This section is for arguments parsing tupdatescpu-mgmt-class-modifyt
argument_spectpn_cliswitchtrequiredttypetstrtstatetchoicest
pn_burst_sizetpn_nametarpticmptsshtsnmptfabrictbcasttnfstwebsweb-sslsnet-apit
pn_rate_limittrequired_ifs %s name %s s burst-size %s rate-limit %sN(tdictRtFalsetTruetkeystparamsR	R
(	t	state_maptmodulet	cliswitchRt
burst_sizetnamet
rate_limittcommandtcli((sV/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_cpu_mgmt_class.pytmaines0	!





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


(	(

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