Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/netvisor/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_vflow_table_profile.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	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(tpn_clitrun_clitbooleanArgsc	C`s�tdd�}tdtdtdtdd�dtdtddd	|j��d
tdtddd	ddd
g�dtdtddd	ddddg�dtdtdd��dddd
dggf�}|jd}|jd}|jd
}|jd}|jd}||}t||�}|dkr�|d|7}|rZ|d|7}n|rq|d|7}n|t|dd�7}nt|||�dS(s' This section is for arguments parsing tupdatesvflow-table-profile-modifyt
argument_spectpn_cliswitchtrequiredttypetstrtstatetchoicest
pn_profiletapplicationtipv6tqost	pn_hw_tblsswitch-mainsswitch-hashsnpu-mainsnpu-hasht	pn_enabletbooltrequired_ifs %s s	 profile s hw-tbl tenabletdisableN(	tdictRtFalsetTruetkeystparamsR	RR
(	t	state_maptmodulet	cliswitchRtprofilethw_tblRtcommandtcli((s[/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_vflow_table_profile.pytmain^s:	





t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt-ansible.module_utils.network.netvisor.pn_nvosR	R
RR*t__name__(((s[/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_vflow_table_profile.pyt<module>s


)	0

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]