ktbyers / netmiko

Multi-vendor library to simplify Paramiko SSH connections to network devices
MIT License
3.63k stars 1.31k forks source link

ConnectHandler don't work for fortimanager #3389

Open josecastillagallardo opened 9 months ago

josecastillagallardo commented 9 months ago

Description of Issue/Question

ConnectHandler don't work for fortimanager

I change ssh_autodetect.py with this: "fortinet": { "cmd": "get system status", "search_patterns": [r"FortiOS", r"FortiGate", r"Platform Full Name\s+:\sFortiManager" , r"Platform Full Name\s+:\sFortiAnalyzer"], "priority": 99, "dispatch": "_autodetect_std", },

for detect fortimanager and get the correct best_match but ConnectHandler get next error:

Error: Unexpected FortiOS Version encountered.

Can you support me?

ktbyers commented 9 months ago

@josecastillagallardo Fortimanager is not supported by Netmiko. Someone would need to create a Netmiko driver for this platform.

josecastillagallardo commented 9 months ago

Hi, Netmiko driver?. Can you explain this?. Thanks

ktbyers commented 8 months ago

Each platform has underlying code that supports the given platform. For Fortinet there is code to support the Fortinet firewalls, but not the Fortimanager.

Consequently, a driver would need to be implemented to support this.

The process for creating a driver is here:

https://github.com/ktbyers/netmiko/blob/develop/VENDOR.md