�
�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 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_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( t pn_clit run_clic C` sz 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 d d
d d d d d d d d g
� d t d t d d � � d d d d d
d g g g � } | j d } | j d } | j d
} | j d } | j d } | | } t | | � } | d k rf| d | | f 7} | d | | f 7} n t | | | � d S( s'