Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pyeapi/api/__pycache__/stp.cpython-39.pyc
Ðазад
a b�h�4 � @ s` d Z ddlZddlmZmZ G dd� de�ZG dd� de�ZG dd � d e�Zd d� Zdd � Z dS )a� Module for working with spanning-tree in EOS This module provides an API for working with spanning-tree configuration in EOS. This includes both global spanning-tree configuration as well as interface config. Global Parameters: mode (string): The spanning-tree operational mode. Accepted values for this version are 'mstp' or 'none'. This configuration parameter is not defaultable interfaces (StpInterfaces): The collection of STP enabled interfaces. Interface Parameters: name (string): The name of the interface the STP configuration is in reference to. The interface name is the full interface identifier portfast (string): The portfast configuration value for the interface. Accepted values are 'edge', 'network', or 'disabled' bpduguard (boolean): True if the BPDU Guard feature is enabled on the interface or False if it is disabled � N)�Entity�EntityCollectionc sJ e Zd ZdZ� fdd�Zdd� Zedd� �Zedd � �Zddd �Z � Z S )�Stpa} The Stp class implements global configuration for spanning-tree The spanning-tree protocol provides both global and interface configuration options. This class is the top-level class that provides access to all spanning-tree configuration options supported. Example: The below example demonstrates how to use the STP class to work with both global configuration and interface configuration. >>> import pyeapi.resources.stp >>> stp = pyeapi.resources.stp.instance(node) >>> stp.set_mode('mstp') True >>> stp.interfaces.set_bpduguard('Ethernet1', True) True Attributes: interfaces (StpInterfaces): An instance for configuration spanning-tree configuration interfaces instances (StpInstances): An instance object for working with spanning-tree global instances c s&