Coder Social home page Coder Social logo

napalm-fsos's Introduction

napalm-fsos

Prerequisites

The following software is required:

Python3
Pip
Python modules specified in requirements.txt
FSOS for the 5800 Plattform running (at least) Version 7.4.1.r1 of the software

Installing

To install simply run:

pip3 install napalm-fsos

Switch configuration

In order to use the driver you need to enable the json-rpc API:

service rpc-api enable ssl ssl-port <json_rpc_port>
service rpc-api auth-mode basic

After you defined the rpc-api port, you will need to add two NAPALM arguments, assuming SSH port is default port 22: "json_rpc_port='<json_rpc_port>'" "ssh_port='22'"

You also need to configure a username and password to authenticate to the API (Privilege = 4 is the min to get it working)

username <your_username> privilege 4 secret <your_password>

In addition ssh (scp) connectivity is needed for the driver to work

napalm-fsos's People

Contributors

chankster avatar ktbyers avatar maxiestudies avatar maximilianoestudies avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

napalm-fsos's Issues

pypi

Hello,

I can't find this package on pypi, I think it's not yet published on it ? (as I see, the readme mention an other plugin napalm-arubaos-switch)

Best regards,

Unable to push configuration

Thanks for the great work for this plugin! Unfortunately I have a problem to push a config to the device - I get the following response from the JSON-API:

napalm -o json_rpc_port=8443,ssh_port=22 --user admin --vendor fsos 192.168.200.81 configure /mnt/c/tmp/startup-config.conf --strategy merge

{'jsonrpc': '2.0', 'id': 0, 'result': [{'sourceDetails': 'This operation will cause all the online HTTP(S) users to be offline.\nThis operation will cause all the online HTTP(S) users to be offline.\n% Error: duplicate domain\n% Error: duplicate name server\n% SNMP is already enabled\n% The community is already existent. \n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Cannot configure aggregator member\n% Port channel has already bound with mlag\n% Port channel has already bound with mlag\n% Port channel has already bound with mlag\nEnter configuration commands, one per line. End with CNTL/Z.\n'}]}

I wonder whether this is a specific problems with aggregates (was this ever tested and is supposed to work?) or if the switch is just not accepting the file.

I reverse-engineered the code a bit and noted that the copy-process is actually working, but afterwards activation fails.

My environment:

  • S5850-24T16B (HW version 5.1)
  • FSOS 7.4.6

FSOS platform support

I'm currently implementing napalm driver for FSOS through SSH since S3900 don't support RPC API and FS don't plan to add it, i've implemented get_arp_table, get_interfaces, get_interfaces_counters as a test and it's working fine.

Would you like to use SSH too in this plugin to merge our effort to have one plugin working for both, maybe it's possible (I don't know what looks like S5800 output).

I'm using textfsm for parsing

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.