Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pyeapi/api/__pycache__/routemaps.cpython-39.pyc
Ðазад
a b�h�8 � @ s4 d Z ddlZddlmZ G dd� de�Zdd� ZdS )a� Module for working with EOS routemap resources The Routemap resource provides configuration management of global route-map resources on an EOS node. It provides the following class implementations: * Routemaps - Configures routemaps in EOS Notes: The set and match attributes produce a list of strings with The corresponding configuration. These strings will omit the preceeding set or match words, respectively. � N)�EntityCollectionc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zd"dd�Zd#d d!�ZdS )$� Routemapsz�The Routemaps class provides management of the routemaps configuration The Routemaps class is derived from Entity and provides an API for working with the nodes routemaps configuraiton. c C s | � d| �sdS | �|�S )aA Provides a method to retrieve all routemap configuration related to the name attribute. Args: name (string): The name of the routemap. Returns: None if the specified routemap does not exists. If the routermap exists a dictionary will be provided as follows:: { 'deny': { 30: { 'continue': 200, 'description': None, 'match': ['as 2000', 'source-protocol ospf', 'interface Ethernet2'], 'set': [] } }, 'permit': { 10: { 'continue': 100, 'description': None, 'match': ['interface Ethernet1'], 'set': ['tag 50']}, 20: { 'continue': 200, 'description': None, 'match': ['as 2000', 'source-protocol ospf', 'interface Ethernet2'], 'set': [] } } } zroute-map\s%s\s\w+\s\d+N)� get_block�_parse_entries)�self�name� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pyeapi/api/routemaps.py�get9 s 'z Routemaps.getc C s@ t � }t�dtj�}|�| j�D ]}| �|�}|r |||<