community.general.pn_port_cos_rate_setting (0.1.1) — module

CLI command to modify port-cos-rate-setting

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 modules can be used to update the port cos rate limit.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: port cos rate modify
  pn_port_cos_rate_setting:
    pn_cliswitch: "sw01"
    state: "update"
    pn_port: "control-port"
    pn_cos1_rate: "1000"
    pn_cos5_rate: "1000"
    pn_cos2_rate: "1000"
    pn_cos0_rate: "1000"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: port cos rate modify
  pn_port_cos_rate_setting:
    pn_cliswitch: "sw01"
    state: "update"
    pn_port: "data-port"
    pn_cos1_rate: "2000"
    pn_cos5_rate: "2000"
    pn_cos2_rate: "2000"
    pn_cos0_rate: "2000"

Inputs

    
state:
    choices:
    - update
    description:
    - State the action to perform. Use C(update) to modify the port-cos-rate-setting.
    required: true
    type: str

pn_port:
    choices:
    - control-port
    - data-port
    - span-ports
    description:
    - port.
    required: false
    type: str

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

pn_cos0_rate:
    description:
    - cos0 rate limit (pps) unlimited or 0 to 10000000.
    required: false
    type: str

pn_cos1_rate:
    description:
    - cos1 rate limit (pps) unlimited or 0 to 10000000.
    required: false
    type: str

pn_cos2_rate:
    description:
    - cos2 rate limit (pps) unlimited or 0 to 10000000.
    required: false
    type: str

pn_cos3_rate:
    description:
    - cos3 rate limit (pps) unlimited or 0 to 10000000.
    required: false
    type: str

pn_cos4_rate:
    description:
    - cos4 rate limit (pps) unlimited or 0 to 10000000.
    required: false
    type: str

pn_cos5_rate:
    description:
    - cos5 rate limit (pps) unlimited or 0 to 10000000.
    required: false
    type: str

pn_cos6_rate:
    description:
    - cos6 rate limit (pps) unlimited or 0 to 10000000.
    required: false
    type: str

pn_cos7_rate:
    description:
    - cos7 rate limit (pps) unlimited or 0 to 10000000.
    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 port-cos-rate-setting command.
  returned: on error
  type: list
stdout:
  description: set of responses from the port-cos-rate-setting command.
  returned: always
  type: list