community.general.pn_cpu_mgmt_class (0.1.1) — module

CLI command to modify cpu-mgmt-class

Authors: Pluribus Networks (@rajaspachipulusu17)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

This module can we used to update mgmt port ingress policers.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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"

Inputs

    
state:
    choices:
    - update
    description:
    - State the action to perform. Use C(update) to modify cpu-mgmt-class.
    required: true
    type: str

pn_name:
    choices:
    - arp
    - icmp
    - ssh
    - snmp
    - fabric
    - bcast
    - nfs
    - web
    - web-ssl
    - net-api
    description:
    - mgmt port ingress traffic class.
    required: false
    type: str

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    required: false
    type: str

pn_burst_size:
    description:
    - ingress traffic burst size (bytes) or default.
    required: false
    type: str

pn_rate_limit:
    description:
    - ingress rate limit on mgmt port(bps) or unlimited.
    required: false
    type: str

Outputs

changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stderr:
  description: set of error responses from the cpu-mgmt-class command.
  returned: on error
  type: list
stdout:
  description: set of responses from the cpu-mgmt-class command.
  returned: always
  type: list