community.general.pn_port_cos_bw (0.1.1) — module

CLI command to modify port-cos-bw

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 be used to update bw settings for CoS queues.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: port cos bw modify
  pn_port_cos_bw:
    pn_cliswitch: "sw01"
    state: "update"
    pn_port: "1"
    pn_cos: "0"
    pn_min_bw_guarantee: "60"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: port cos bw modify
  pn_port_cos_bw:
    pn_cliswitch: "sw01"
    state: "update"
    pn_port: "all"
    pn_cos: "0"
    pn_weight: "priority"

Inputs

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

pn_cos:
    description:
    - CoS priority.
    required: false
    type: str

pn_port:
    description:
    - physical port number.
    required: false
    type: str

pn_weight:
    choices:
    - priority
    - no-priority
    description:
    - Scheduling weight (1 to 127) after b/w guarantee met.
    required: false
    type: str

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

pn_max_bw_limit:
    description:
    - Maximum b/w in percentage.
    required: false
    type: str

pn_min_bw_guarantee:
    description:
    - Minimum b/w in percentage.
    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-bw command.
  returned: on error
  type: list
stdout:
  description: set of responses from the port-cos-bw command.
  returned: always
  type: list