Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pyeapi/api/__pycache__/interfaces.cpython-39.pyc
Ðазад
a b�ht� � @ s� d Z ddlZddlmZ ddlmZ e�dej�ZdZ dZ dZeg d ��Z d d� ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zeeed�Zdd� ZdS )a Module for working with interfaces in EOS This module provides an API for pragmatically working with EOS interface configurations. Interfaces include any data or management plane interface available in EOS. Parameters: name (string): The name of the interface the configuration should be applied to. The interface name is the full interface identifier. shutdown (boolean): True if the interface is administratively disabled, and False if the interface is administratively enable. This value does not validate the interfaces operational state. description (string): The interface description string. This value is an arbitrary operator defined value. sflow (boolean): True if sFlow is enabled on the interface otherwise False flowcontrol_send (string): The flowcontrol send configuration value for the interface. Valid values are on or off flowcontrol_receive (string): The flowcontrol receive configuration value for the interface. Valid values are on or off � N)�EntityCollection)� ProxyCallz#(?<=\s{3}min-links\s)(?P<value>.+)$�on�disabled�Z )ZEthernetZ ManagementZLoopbackzPort-ChannelZVlanZVxlanc C s t �d| �}|o|�� tv S )Nz([EPVLM][a-z-C]+))�re�match�group�VALID_INTERFACES)�valuer � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pyeapi/api/interfaces.py�isvalidinterfaceQ s r c sD e Zd Z� fdd�Zdd� Zdd� Zdd� Zd d � Zdd� Z� Z S ) � Interfacesc s* t t| �j|g|�R i |�� t� | _d S �N)�superr �__init__�dict� _instances)�self�node�args�kwargs�� __class__r r r X s zInterfaces.__init__c C s | � |�| S r )�get_instance�r �namer r r �get\ s zInterfaces.getc C s@ t �dt j�}t� }|�| j�D ]}| �|�}|r |||<