Coder Social home page Coder Social logo

napalm-fsos-ssh's People

Contributors

dependabot[bot] avatar lkthomas avatar m0nsterrr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

napalm-fsos-ssh's Issues

library can't call from Napalm

``
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from napalm import get_network_driver
import napalm_fsos_ssh
dir(napalm_fsos_ssh)
['builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec']
napalm_fsos_ssh
<module 'napalm_fsos_ssh' from '/opt/netbox/venv/lib/python3.8/site-packages/napalm_fsos_ssh/init.py'>
import importlib
importlib.import_module("napalm_fsos_ssh")
<module 'napalm_fsos_ssh' from '/opt/netbox/venv/lib/python3.8/site-packages/napalm_fsos_ssh/init.py'>
get_network_driver('fsos_ssh')
Traceback (most recent call last):
File "", line 1, in
File "/opt/netbox/venv/lib/python3.8/site-packages/napalm/base/init.py", line 110, in get_network_driver
raise ModuleImportError(
napalm.base.exceptions.ModuleImportError: No class inheriting "napalm.base.base.NetworkDriver" found in "napalm.fsos_ssh".
get_network_driver('fsos')
Traceback (most recent call last):
File "", line 1, in
File "/opt/netbox/venv/lib/python3.8/site-packages/napalm/base/init.py", line 99, in get_network_driver
napalm.base.exceptions.ModuleImportError: Cannot import "fsos". Is the library installed?
``

FSOS 2.2

I am planning to buy a couple of S3900 48T6S-R.
That model ships with FSOS 2.2, which appears to differ from v1.7 you are using.

There is no show system and it's show interface instead of show interfaces.

I probably could create a fsos2-ssh from your code but maybe you can think of another way - supporting both versions from a single module?!

Implement FSOS devicetype

Create FSOS device type in netmiko library to replace cisco_ios implementation to fix terminal width <value> unknown command.
Netmiko session log


      CLI session with the S3900-24T4S is opened.
      To end the CLI session, enter [Exit].

SW2-1#
SW2-1#terminal width 511
                     ^
% Invalid parameter value/range input detected at '^' marker.
SW2-1#terminal length 0
SW2-1#
SW2-1#
SW2-1#show system
 System Up Time         : 7 days, 10 hours, 32 minutes, and 47.15 seconds
 System Name            : SW2
 System Location        : Rack
 System Contact         : [email protected]
 MAC Address (Unit 1)   : 64-9D-99-10-08-58
 System OID String  : 1.3.6.1.4.1.52642.2.1.45.101
 http Server        : Disabled
 http Server Port   : 80
 https Server       : Disabled
 https Server Port  : 443
 Telnet Server      : Disabled
 Telnet Server Port : 23

System Temperature:
-----------------------------------------------------------------
unit 1     Temperature 1:  54 degrees    


System Power status:
-----------------------------------------------------------------
 Unit 1     Main Power Status      : Up
SW2-1#
SW2-1#show memory

 Total  Memory:    536870912 bytes
 Used  Memory:     316882944 bytes
 Used  percent:    60%

 Generate Trap alarm threshold:    90%
 Clear Trap alarm threshold     :    70%

SW2-1#

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.