mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
Disable target paging after hop login and keep CLI echo on timeouts.
LLDP discover and config collect were timing out on --More--; send vendor paging-off after nested/bastion auth, and attach session-log tails so failures show where the CLI stuck. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3adf8d8b75
commit
fbf73cbaaf
12 changed files with 334 additions and 40 deletions
|
|
@ -57,6 +57,12 @@ class ZteCollectionPrepTests(unittest.TestCase):
|
|||
self.assertIsNot(wrapped, base)
|
||||
self.assertTrue(wrapped.__name__.startswith("ZteCollection"))
|
||||
|
||||
def test_collection_driver_selects_huawei_wrapper(self) -> None:
|
||||
base = _netmiko_driver_class("huawei")
|
||||
wrapped = _collection_driver_class("huawei", base)
|
||||
self.assertIsNot(wrapped, base)
|
||||
self.assertTrue(wrapped.__name__.startswith("HuaweiCollection"))
|
||||
|
||||
def test_prompt_timeout_sends_return_then_retries(self) -> None:
|
||||
base = _netmiko_driver_class("zte_zxros_ssh")
|
||||
cls = _zte_collection_driver_class(base)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue