Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/netmiko/allied_telesis/allied_telesis_awplus.py
Ðазад
from netmiko.cisco_base_connection import CiscoBaseConnection import time class AlliedTelesisAwplusBase(CiscoBaseConnection): """Implement methods for interacting with Allied Telesis devices.""" def session_preparation(self): """ Prepare the session after the connection has been established. Disable paging (the '--more--' prompts). Set the base prompt for interaction ('>'). """ """ AWPlus Configuration """ self.disable_paging() self.set_base_prompt() time.sleep(0.3 * self.global_delay_factor) def _enter_shell(self): """Enter the Bourne Shell.""" return self.send_command("start shell sh", expect_string=r"[\$#]") def _return_cli(self): """Return to the Awplus CLI.""" return self.send_command("exit", expect_string=r"[#>]") def exit_config_mode(self, exit_config="exit", pattern=""): """Exit configuration mode.""" output = "" if self.check_config_mode(): output = self.send_command_timing( exit_config, strip_prompt=False, strip_command=False ) if "Exit with uncommitted changes?" in output: output += self.send_command_timing( "yes", strip_prompt=False, strip_command=False ) if self.check_config_mode(): raise ValueError("Failed to exit configuration mode") return output class AlliedTelesisAwplusSSH(AlliedTelesisAwplusBase): pass
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка