Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/netmiko/ericsson/__pycache__/ericsson_ipos.cpython-39.pyc
Ðазад
a v�hH � @ s( d dl Z d dlmZ G dd� de�ZdS )� N)�BaseConnectionc s� e Zd Zd'� fdd� Zddejf� fdd� Zd(� fd d� Zd)� fd d� Zd*� fdd� Z d+� fdd� Z d,� fdd� Zd-� fdd� Zd.� fdd� Z d/d#d$�Zd0d%d&�Z� ZS )1�EricssonIposSSH�#c s t � j|d�S )z: Check if in enable mode. Return boolean. )�check_string)�super�check_enable_mode)�selfr �� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/netmiko/ericsson/ericsson_ipos.pyr s z!EricssonIposSSH.check_enable_modez enable 15Zsswordc s t � j|||d�S )zEnter enable mode.)�cmd�pattern�re_flags)r �enable)r r r r r r r r s zEricssonIposSSH.enable�terminal length 0� c s t � j||d�S )z�Disable paging default to a Cisco CLI method. :param command: Device command to disable pagination of output :type command: str :param delay_factor: See __init__: global_delay_factor :type delay_factor: int ��command�delay_factor)r �disable_paging�r r r r r r r s zEricssonIposSSH.disable_paging�terminal width 512c s t � j||d�S )a� CLI terminals try to automatically adjust the line based on the width of the terminal. This causes the output to get distorted when accessed programmatically. Set terminal width to 511 which works on a broad set of devices. :param command: Command string to send to the device :type command: str :param delay_factor: See __init__: global_delay_factor :type delay_factor: int r )r �set_terminal_widthr r r r r s z"EricssonIposSSH.set_terminal_widthNFc s t � jf ||d�|��S )z<Ericsson IPOS requires you not exit from configuration mode.)�config_commands�exit_config_mode)r �send_config_set)r r r �kwargsr r r r * s ��zEricssonIposSSH.send_config_set�disablec s t � j|d�S )z6 Exits enable (privileged exec) mode. )�exit_command)r �exit_enable_mode)r r r r r r 0 s z EricssonIposSSH.exit_enable_mode�)#� c s t � j||d�S )zG Checks if the device is in configuration mode or not. )r r )r �check_config_mode)r r r r r r r# 6 s z!EricssonIposSSH.check_config_mode� configurec s( |st �| jdd� �}t� j||d�S )zA Enter into configuration mode on remote device. N� )�config_commandr )�re�escapeZbase_promptr �config_mode)r r&