netmiko
netmiko copied to clipboard
Add FortiAnalyzer compatibility
FortiAnalyzer CLI use '>' as prompt, but actual pattern doesn't read it.
Example of FortiAnalyzer CLI :
> get system status
System:
Version: FACVM v6.2.1-build0552,201030 (GA)
Branch point: 0552
Architecture: 64-bit
Serial number: FAC-VMTM21006510
System time: Thu Aug 11 18:29:39 2022 up 169 days, 2:14
Disk Usage: 0 GB
Disk Size: 57 GB
HA Status:
Enabled: No
Node Type:
Role: Disabled
Status: Disabled
Cluster size:
Heartbeat interface:
Priority:
Node-Specific Gateway:
Peer:
>
I just tested, it works also with FortiAuthenticator and FortiManager
We are going to redo the Fortinet driver so I am going to wait on this until that is done.
@Hyperion60 Are you still interested/willing to work on this issue?
Yes
Hi, Same issue in FortiAuthenticator:
File "/home/dani/.local/lib/python3.8/site-packages/netmiko/base_connection.py", line 1368, in set_base_prompt raise ValueError(f"Router prompt not found: {repr(prompt)}") ValueError: Router prompt not found: '>'
@Hyperion60 Can you run Netmiko config and show test suite against a FortiAnalyzer device using this code.
The test process is here.
https://github.com/ktbyers/netmiko/blob/develop/TESTING.md
@dpinyol Does the FortiAuthenticator work with the code referenced here?
I could work on it from the end of the week. My job has the priority.
@Hyperion60 Let me know if you can post the Netmiko test output into this PR:
https://github.com/ktbyers/netmiko/blob/develop/TESTING.md
PR is unfortunately no longer active...so closing.