Created
July 18, 2022 20:09
-
-
Save romanstech/c52bdc7b87885f51429feb9797a05ee4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1c1 | |
< """Netmiko support for Extreme/Avaya Ethernet Routing Switch.""" | |
--- | |
> """Netmiko support for Extreme Ethernet Routing Switch.""" | |
6c6 | |
< # Extreme ERS presents Enter Ctrl-Y to begin and Ctrl-C to pass start-up menu. | |
--- | |
> # Extreme ERS presents Enter Ctrl-Y to begin. | |
8d7 | |
< CTRL_C = "\x63" | |
15d13 | |
< enable_pattern = "#" | |
25c23 | |
< Extreme/Avaya ERS presents the following as part of the login process: | |
--- | |
> Extreme ERS presents the following as part of the login process: | |
27c25 | |
< Enter Ctrl-Y to begin (can be disabled with banner disabled or no banner config command) | |
--- | |
> Enter Ctrl-Y to begin | |
32,40d29 | |
< | |
< Then we will see Menu of commands which can be disabled with cmd-interface cli config command | |
< | |
< But now this script allows to connect SSH to devices with Ctrl-Y and Menu presented. | |
< | |
< Tested with ERS v.6.3 and higher on 5510, 5510, 5698 Avaya ERS switches. | |
< | |
< Used "device_type": "avaya_ers" | |
< | |
47,48c36 | |
< menu = "Menu" | |
< pattern = rf"(?:{uname}|{password}|{cntl_y}|{self.prompt_pattern}|{self.enable_pattern}|{menu})" | |
--- | |
> pattern = rf"(?:{uname}|{password}|{cntl_y}|{self.prompt_pattern})" | |
57,58d44 | |
< elif menu in new_data: | |
< self.write_channel(CTRL_C) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment