community.general.pn_vflow_table_profile (0.1.1) — module

CLI command to modify vflow-table-profile

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 modify a vFlow table profile.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Modify vflow table profile
  pn_vflow_table_profile:
    pn_cliswitch: 'sw01'
    state: 'update'
    pn_profile: 'ipv6'
    pn_hw_tbl: 'switch-main'
    pn_enable: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Modify vflow table profile
  pn_vflow_table_profile:
    state: 'update'
    pn_profile: 'qos'
    pn_hw_tbl: 'switch-main'
    pn_enable: false

Inputs

    
state:
    choices:
    - update
    description:
    - State the action to perform. Use C(update) to modify the vflow-table-profile.
    required: true
    type: str

pn_enable:
    description:
    - enable or disable vflow profile table.
    required: false
    type: bool

pn_hw_tbl:
    choices:
    - switch-main
    - switch-hash
    - npu-main
    - npu-hash
    description:
    - hardware table used by vFlow.
    required: false
    type: str

pn_profile:
    choices:
    - application
    - ipv6
    - qos
    description:
    - type of vFlow profile.
    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 vflow-table-profile command.
  returned: on error
  type: list
stdout:
  description: set of responses from the vflow-table-profile command.
  returned: always
  type: list