Closed M0NsTeRRR closed 1 year ago
@M0NsTeRRR You can call a different custom function/method by using a different callable for dispatch
i.e. you can call a different callable than _autodetect_std
.
Let me know if that makes sense.
Of course, but I think that having a more generic function may be more useful and avoid having two functions that are quite similar in operation. That's up to you.
Yes, what I recommended above is the standard way to do this in Netmiko i.e. you would create a new function to accomplish your purpose and then call that as part of dispatch
.
Hello,
I'm trying to add ssh_autodetect for fiberstore product (two differents firmware) linked to #3129 but the issue is one command give the company and an other one give the version.
System OID String : 1.3.6.1.4.1.52642.2.1.45.101
=> 52642 = fiberstoreOperation Code Version : 1.7.5
Maybe we could rewrite autodetect with flexibility to handle when more than one command is needed ?
to
If you agree with the idea, I can open a PR to rewrite it.