mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 23:24:22 +08:00
feat(ops): add managed NE management and batch CLI collection
Introduce workbench operations for multi-vendor NE CRUD/connect-test and Netmiko batch collection with job lifecycle controls, log downloads, and paginated run filters. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
282dbe75af
commit
042c015045
36 changed files with 3695 additions and 17 deletions
15
tests/test_ne_collection.py
Normal file
15
tests/test_ne_collection.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
from netx_api.collection_service import _parse_commands
|
||||
|
||||
|
||||
class NeCollectionParseTests(unittest.TestCase):
|
||||
def test_parse_commands_skips_comments(self):
|
||||
cmds = _parse_commands("display version\n# comment\ndisplay ip int brief\n")
|
||||
self.assertEqual(cmds, ["display version", "display ip int brief"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue