Skip to content

Commit df2b9d9

Browse files
committed
Reimplement Huawei SmartAX autodetect
1 parent ec74453 commit df2b9d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

netmiko/ssh_autodetect.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,12 @@
315315
"priority": 99,
316316
"dispatch": "_autodetect_std",
317317
},
318+
"huawei_smartax": {
319+
"cmd": "display version",
320+
"search_patterns": [r"Huawei Integrated Access Software"],
321+
"priority": 99,
322+
"dispatch": "_autodetect_std",
323+
},
318324
}
319325

320326
# Sort SSH_MAPPER_DICT such that the most common commands are first
@@ -537,6 +543,7 @@ def _autodetect_std(
537543
r"command not found",
538544
r"Syntax Error: unexpected argument",
539545
r"% Unrecognized command found at",
546+
r"% Unknown command, the error locates at",
540547
]
541548
if not cmd or not search_patterns:
542549
return 0

0 commit comments

Comments
 (0)