community.general.pn_dscp_map_pri_map (0.1.1) — module

CLI command to modify dscp-map-pri-map

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 priority mappings in tables.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: dscp map pri map modify
  pn_dscp_map_pri_map:
    pn_cliswitch: 'sw01'
    state: 'update'
    pn_name: 'foo'
    pn_pri: '0'
    pn_dsmap: '40'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: dscp map pri map modify
  pn_dscp_map_pri_map:
    pn_cliswitch: 'sw01'
    state: 'update'
    pn_name: 'foo'
    pn_pri: '1'
    pn_dsmap: '8,10,12,14'

Inputs

    
state:
    choices:
    - update
    description:
    - State the action to perform. Use C(update) to modify the dscp-map-pri-map.
    required: true
    type: str

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

pn_name:
    description:
    - Name for the DSCP map.
    required: false
    type: str

pn_dsmap:
    description:
    - DSCP value(s).
    required: false
    type: str

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    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 dscp-map-pri-map command.
  returned: on error
  type: list
stdout:
  description: set of responses from the dscp-map-pri-map command.
  returned: always
  type: list