Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pyeapi/api/__pycache__/vlans.cpython-39.pyc
Ðазад
a b�h�- � @ sr d Z ddlZddlmZ ddlmZ e�dej�Ze�dej�Z e�dej�Z dd � ZG d d� de�Zdd � Z dS )a� Module for working with EOS VLAN resources The Vlans resource provides configuration of VLAN resources for an EOS node. Parameters: name (string): The name parameter maps to the VLAN name in EOS. Valid values include any consecutive sequence of numbers, letters and underscore up to the maximum number of characters. This parameter is defaultable. state (string): The state parameter sets the operational state of the VLAN on the node. It has two valid values: active or suspend. The state parameter is defaultable. trunk_groups (array): The trunk_groups parameter provides a list of trunk groups configured for this VLAN. This parameter is defaultable. � N)�EntityCollection)� make_iterablez(?:name\s)(?P<value>.*)$z(?:state\s)(?P<value>.*)$z (?:trunk\sgroup\s)(?P<value>.*)$c C s2 zt | �} | tdd�v W S ty, Y dS 0 dS )al Checks if the argument is a valid VLAN A valid VLAN is an integer value in the range of 1 to 4094. This function will test if the argument falls into the specified range and is considered a valid VLAN Args: value: The value to check if is a valid VLAN Returns: True if the supplied value is a valid VLAN otherwise False � i� FN)�int�range� ValueError)�value� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pyeapi/api/vlans.py�isvlan>