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_port_cos_bw.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys)
---
module: pn_port_cos_bw
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: "2.8"
short_description: CLI command to modify port-cos-bw
description:
  - This module can be used to update bw settings for CoS queues.
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 port-cos-bw.
    required: True
    type: str
    choices: ['update']
  pn_max_bw_limit:
    description:
      - Maximum b/w in percentage.
    required: False
    type: str
  pn_cos:
    description:
      - CoS priority.
    required: False
    type: str
  pn_port:
    description:
      - physical port number.
    required: False
    type: str
  pn_weight:
    description:
      - Scheduling weight (1 to 127) after b/w guarantee met.
    required: False
    type: str
    choices: ['priority', 'no-priority']
  pn_min_bw_guarantee:
    description:
      - Minimum b/w in percentage.
    required: False
    type: str
s2
- 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"

- name: port cos bw modify
  pn_port_cos_bw:
    pn_cliswitch: "sw01"
    state: "update"
    pn_port: "all"
    pn_cos: "0"
    pn_weight: "priority"
s�
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stdout:
  description: set of responses from the port-cos-bw command.
  returned: always
  type: list
stderr:
  description: set of error responses from the port-cos-bw 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_clicC`stdd�}tdtdtdtdd�dtdtddd	|j��d
tdtdd�dtdtdd�dtdtdd�d
tdtddd	ddg�dtdtdd��dddddggfdd
dd
gg�}|jd}|jd}|jd
}|jd}|jd}|jd
}|jd}||}	t||�}
|	dkr�|
d|	7}
|r�|
d|7}
n|r�|
d|7}
n|r�|
d|7}
n|r�|
d|7}
n|r�|
d|7}
q�nt||
|�dS(s' This section is for arguments parsing tupdatesport-cos-bw-modifyt
argument_spectpn_cliswitchtrequiredttypetstrtstatetchoicestpn_max_bw_limittpn_costpn_portt	pn_weighttprioritysno-prioritytpn_min_bw_guaranteetrequired_iftrequired_one_ofs %s s max-bw-limit s cos s port s weight s min-bw-guarantee N(tdictRtFalsetTruetkeystparamsR	R
(t	state_maptmodulet	cliswitchRtmax_bw_limittcostporttweighttmin_bw_guaranteetcommandtcli((sS/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_port_cos_bw.pytmaingsJ	







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


1	7

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