-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add legacy ssh algorithms to support old OS versions
- Loading branch information
Showing
7 changed files
with
83 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
__author__ = "Artem Kotik" | ||
__email__ = "[email protected]" | ||
__version__ = "1.2.1" | ||
__version__ = "1.2.2" | ||
|
||
|
||
class ConfigDiffConfig(PluginConfig): | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,42 @@ def to_scrapli(self): | |
"platform": self.platform, | ||
"auth_strict_key": self.auth_strict_key, | ||
"transport": self.transport, | ||
"transport_options": { | ||
"asyncssh": { | ||
"kex_algs": [ | ||
"curve25519-sha256", | ||
"[email protected]", | ||
"curve448-sha512", | ||
"ecdh-sha2-nistp521", | ||
"ecdh-sha2-nistp384", | ||
"ecdh-sha2-nistp256", | ||
"ecdh-sha2-1.3.132.0.10", | ||
"diffie-hellman-group-exchange-sha256", | ||
"diffie-hellman-group14-sha256", | ||
"diffie-hellman-group15-sha512", | ||
"diffie-hellman-group16-sha512", | ||
"diffie-hellman-group17-sha512", | ||
"diffie-hellman-group18-sha512", | ||
"[email protected]", | ||
"diffie-hellman-group14-sha1", | ||
"rsa2048-sha256", | ||
"diffie-hellman-group1-sha1", | ||
"diffie-hellman-group-exchange-sha1", | ||
"diffie-hellman-group-exchange-sha256", | ||
], | ||
"encryption_algs": [ | ||
"aes256-cbc", | ||
"aes192-cbc", | ||
"aes128-cbc", | ||
"3des-cbc", | ||
"aes256-ctr", | ||
"aes192-ctr", | ||
"aes128-ctr", | ||
"[email protected]", | ||
"[email protected]", | ||
], | ||
}, | ||
}, | ||
} | ||
|
||
def to_db(self): | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,42 @@ def test_devicedataclass_to_scrapli(devicedataclass_data: "DeviceDataClassData") | |
"platform": devicedataclass_data.platform, | ||
"auth_strict_key": devicedataclass_data.auth_strict_key, | ||
"transport": devicedataclass_data.transport, | ||
"transport_options": { | ||
"asyncssh": { | ||
"kex_algs": [ | ||
"curve25519-sha256", | ||
"[email protected]", | ||
"curve448-sha512", | ||
"ecdh-sha2-nistp521", | ||
"ecdh-sha2-nistp384", | ||
"ecdh-sha2-nistp256", | ||
"ecdh-sha2-1.3.132.0.10", | ||
"diffie-hellman-group-exchange-sha256", | ||
"diffie-hellman-group14-sha256", | ||
"diffie-hellman-group15-sha512", | ||
"diffie-hellman-group16-sha512", | ||
"diffie-hellman-group17-sha512", | ||
"diffie-hellman-group18-sha512", | ||
"[email protected]", | ||
"diffie-hellman-group14-sha1", | ||
"rsa2048-sha256", | ||
"diffie-hellman-group1-sha1", | ||
"diffie-hellman-group-exchange-sha1", | ||
"diffie-hellman-group-exchange-sha256", | ||
], | ||
"encryption_algs": [ | ||
"aes256-cbc", | ||
"aes192-cbc", | ||
"aes128-cbc", | ||
"3des-cbc", | ||
"aes256-ctr", | ||
"aes192-ctr", | ||
"aes128-ctr", | ||
"[email protected]", | ||
"[email protected]", | ||
], | ||
}, | ||
}, | ||
} | ||
|
||
|
||
|
This file contains 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