GithubHelp home page GithubHelp logo

Comments (8)

mirceaulinic avatar mirceaulinic commented on June 2, 2024

Hi @fabbiomcosta

napalm-ios is using netmiko (https://github.com/ktbyers/netmiko/tree/master/netmiko) as transport libray. AFAIK netmiko provides now support for telnet - @ktbyers please correct me if I'm wrong. If that's the case, I think we can definitely introduce this feature, via a new optional argument (http://napalm.readthedocs.io/en/latest/support/index.html#optional-arguments). We can then extend this for other drivers as iosxr, junos (as junos-eznc 2.0 introduced telnet support) and maybe others.

from napalm-ios.

fabbiomcosta avatar fabbiomcosta commented on June 2, 2024

Hi @mirceaulinic,
I'm not a developer, but i saw that netmiko provides support for telnet. So, you are right.
How could I help you to deploy the new optional argument? I'm interested in helping this project.

from napalm-ios.

ktbyers avatar ktbyers commented on June 2, 2024

Netmiko supports telnet using device_type 'cisco_ios_telnet'. Extreme might work using this driver (for Netmiko).

napalm-ios can't be made to work with telnet as configuration file operations all use secure copy to transfer files (at least as currently constructed).

from napalm-ios.

dbarrosop avatar dbarrosop commented on June 2, 2024

@ktbyers how hard would it be to support the getters over telnet? Obviously, if the user decide to use telnet as transport configuration related methods should be disabled.

from napalm-ios.

ktbyers avatar ktbyers commented on June 2, 2024

@dbarrosop getters is probably easy if the Netmiko 'cisco_ios_telnet' driver just works.

from napalm-ios.

dbarrosop avatar dbarrosop commented on June 2, 2024

I will let you decide if it's worth supporting the getters via telnet. I understand configuration might be trickier.

from napalm-ios.

ktbyers avatar ktbyers commented on June 2, 2024

I can't bring myself to implement this...if someone else wants to, submit a PR on it. You would just to add an optional_argument to pass in a protocol, telnet or ssh.

Then just switch the device_type from cisco_ios to cisco_ios_telnet.

from napalm-ios.

mirceaulinic avatar mirceaulinic commented on June 2, 2024

You would just to add an optional_argument to pass in a protocol, telnet or ssh.

How does transport_type sound to you @ktbyers? The reasoning I'm asking is that we could probably offer telnet transport for other drivers as well.

Then just switch the device_type from cisco_ios to cisco_ios_telnet.

And raise exception for config-related methods? Or something else? - I understand they won't work at all over telnet.

from napalm-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.