napalm-automation-community / napalm-fsos-ssh Goto Github PK
View Code? Open in Web Editor NEWSSH-based driver for FSOS (related products: see fs.com)
License: Other
SSH-based driver for FSOS (related products: see fs.com)
License: Other
``
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?
``
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?!
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#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.