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_stp.pyo

�
�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_stp
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: "2.8"
short_description: CLI command to modify stp
description:
  - This module can be used to modify Spanning Tree Protocol parameters.
options:
  pn_cliswitch:
    description:
      - Target switch to run the CLI on.
    type: str
    required: false
  state:
    description:
      - State the action to perform. Use C(update) to stp.
    type: str
    required: true
    choices: ['update']
  pn_hello_time:
    description:
      - STP hello time between 1 and 10 secs.
    type: str
    default: '2'
  pn_enable:
    description:
      - enable or disable STP
    type: bool
  pn_root_guard_wait_time:
    description:
      - root guard wait time between 0 and 300 secs. 0 to disable wait.
    type: str
    default: '20'
  pn_bpdus_bridge_ports:
    description:
      - BPDU packets to bridge specific port.
    type: bool
  pn_mst_max_hops:
    description:
      - maximum hop count for mstp bpdu.
    type: str
    default: '20'
  pn_bridge_id:
    description:
      - STP bridge id.
    type: str
  pn_max_age:
    description:
      - maximum age time between 6 and 40 secs.
    type: str
    default: '20'
  pn_stp_mode:
    description:
      - STP mode.
    type: str
    choices: ['rstp', 'mstp']
  pn_mst_config_name:
    description:
      - Name for MST Configuration Instance.
    type: str
  pn_forwarding_delay:
    description:
      - STP forwarding delay between 4 and 30 secs.
    type: str
    default: '15'
  pn_bridge_priority:
    description:
      - STP bridge priority.
    type: str
    default: '32768'
sz
- name: Modify stp
  pn_stp:
    pn_cliswitch: "sw01"
    state: "update"
    pn_hello_time: "3"
    pn_stp_mode: "rstp"
s�
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stdout:
  description: set of responses from the stp command.
  returned: always
  type: list
stderr:
  description: set of error responses from the stp 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
tdtdddd�d
tdtdd�dtdtdddd�dtdtdd�dtdtdddd�dtdtdd�dtdtdddd�dtdtddd	ddg�dtdtdd�dtdtdddd�dtdtdddd��
dd
d
dddddddddgg�}|jd}|jd}|jd
}|jd
}|jd}|jd}|jd}|jd}	|jd}
|jd}|jd}|jd}
|jd}||}t||�}|dkrr|d|7}|r�|d|7}n|r�|d |7}n|r�|d!|7}n|	r�|d"|	7}n|
r�|d#|
7}n|r�|d$|7}n|r|d%|7}n|
r,|d&|
7}n|rC|d'|7}n|t|d(d)�7}|t|d*d+�7}nt|||�d,S(-s' This section is for arguments parsing tupdates
stp-modifyt
argument_spectpn_cliswitchtrequiredttypetstrtstatetchoicest
pn_hello_timetdefaultt2t	pn_enabletbooltpn_root_guard_wait_timet20tpn_bpdus_bridge_portstpn_mst_max_hopstpn_bridge_idt
pn_max_agetpn_stp_modetrstptmstptpn_mst_config_nametpn_forwarding_delayt15tpn_bridge_priorityt32768trequired_one_ofs %s s hello-time s root-guard-wait-time s mst-max-hops s bridge-id s	 max-age s
 stp-mode s mst-config-name s forwarding-delay s bridge-priority tenabletdisablesbpdus-bridge-portssbpdus-all-portsN(	tdictRtFalsetTruetkeystparamsR	RR
(t	state_maptmodulet	cliswitchRt
hello_timeR(troot_guard_wait_timetbpdus_bridge_portstmst_max_hopst	bridge_idtmax_agetstp_modetmst_config_nametforwarding_delaytbridge_prioritytcommandtcli((sK/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_stp.pytmainxs�	













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


J		T

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