Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autodetect - platform flexibility feature request #3518

Open
susanhooks opened this issue Oct 31, 2024 · 1 comment
Open

Autodetect - platform flexibility feature request #3518

susanhooks opened this issue Oct 31, 2024 · 1 comment

Comments

@susanhooks
Copy link

Description of Issue/Question

While using the ssh_autodetect feature of netmiko, I noticed that some devices using XE software were being detected as IOS. From looking at the backend of that package, those platforms are equally weighted, but IOS is selected.
I'd like a way to change which platform/vendor name is optionally preferred for ssh autodetect.

Setup

Netmiko version

netmiko==4.3.0

Netmiko device_type (if relevant to the issue)

Cisco WS-C3850-48P XE 16.2

Steps to Reproduce the Issue

autodetect device type using ssh_autodetect

Error Traceback

No error, just unexpected result of being detected as IOS

@ktbyers
Copy link
Owner

ktbyers commented Oct 31, 2024

One solution that we discussed via Slack:

Another possible solution (easier solution) to the autodetect issue is we add some additional argument that defaults to false--like use_canonical=True and in this case Netmiko would set an IOS-XE device to cisco_xe and generally try to use the most correct answer for returning the device type.

This is probably the easiest way to do it and then we won't break backwards compatibility with other things (which might be expecting the current answer--for example, parsers (ntc-templates, genie), napalm, netbox, nautobot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants