�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
m Z m Z d
� Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys�
---
module: pn_vflow_table_profile
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: "2.8"
short_description: CLI command to modify vflow-table-profile
description:
- This module can be used to modify a vFlow table profile.
options:
pn_cliswitch:
description:
- Target switch to run the CLI on.
required: false
type: str
state:
description:
- State the action to perform. Use C(update) to modify
the vflow-table-profile.
required: true
type: str
choices: ['update']
pn_profile:
description:
- type of vFlow profile.
required: false
type: str
choices: ['application', 'ipv6', 'qos']
pn_hw_tbl:
description:
- hardware table used by vFlow.
required: false
type: str
choices: ['switch-main', 'switch-hash', 'npu-main', 'npu-hash']
pn_enable:
description:
- enable or disable vflow profile table.
required: false
type: bool
sM
- 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
- name: Modify vflow table profile
pn_vflow_table_profile:
state: 'update'
pn_profile: 'qos'
pn_hw_tbl: 'switch-main'
pn_enable: false
s�
command:
description: the CLI command run on the target node.
returned: always
type: str
stdout:
description: set of responses from the vflow-table-profile command.
returned: always
type: list
stderr:
description: set of error responses from the vflow-table-profile command.
returned: on error
type: list
changed:
description: indicates whether the CLI caused changes on the target.
returned: always
type: bool
( t
AnsibleModule( t pn_clit run_clit booleanArgsc C` s� t d d � } t d t d t d t d d � d t d t d d d | j � � d
t d t d d d d d d
g � d t d t d d d d d d d g � d t d t d d � � d d d d
d g g f � } | j d } | j d } | j d
} | j d } | j d } | | } t | | � } | d k r�| d | 7} | rZ| d | 7} n | rq| d | 7} n | t | d d � 7} n t | | | � d S( s'