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:
oliver 2026-08-29 12:30:33 +08:00
parent 3adf8d8b75
commit fbf73cbaaf
12 changed files with 334 additions and 40 deletions

View file

@ -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)