Coder Social home page Coder Social logo

cpmarvin / lnetd Goto Github PK

View Code? Open in Web Editor NEW
117.0 18.0 14.0 29.27 MB

dynamic network topology from IGP information

License: GNU General Public License v2.0

Python 34.63% HTML 14.61% Mako 0.03% CSS 36.91% JavaScript 8.99% Shell 0.01% SCSS 4.82%
isis netflow pmacct python d3js plotly flask sqlite3 pyez nornir

lnetd's People

Contributors

cpmarvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lnetd's Issues

ntc-template not found

Open for tracking.

XR task in get_inventory.py nornir scripts are failing with the following error.

2019-10-15 05:24:14,159 - nornir.core.task - ERROR - start() - Host 'nl-p7-ams': task 'netmiko_send_command' failed with traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/nornir/core/task.py", line 85, in start
r = self.task(self, **self.params)
File "/usr/local/lib/python3.6/dist-packages/nornir/plugins/tasks/networking/netmiko_send_command.py", line 32, in netmiko_send_command
result = net_connect.send_command(command_string, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/netmiko/base_connection.py", line 1355, in send_command
output, platform=self.device_type, command=command_string.strip()
File "/usr/local/lib/python3.6/dist-packages/netmiko/utilities.py", line 262, in get_structured_data
template_dir = get_template_dir()
File "/usr/local/lib/python3.6/dist-packages/netmiko/utilities.py", line 245, in get_template_dir
raise ValueError(msg)
ValueError:
Valid ntc-templates not found, please install https://github.com/networktocode/ntc-templates
and then set the NET_TEXTFSM environment variable to point to the ./ntc-templates/templates
directory.

Missing ipdb from requirements

Hi CP

I just tried to install on Ubuntu 20, using Python 3.6.9. I try to run the web app, and I get:

ModuleNotFoundError: No module named 'ipdb' among other errors.

Adding ipdb to requirements should solve this, I think?

James

side panel

change to a side panel menu to better use the space on the page

OSPF support

Hey @cpmarvin I've now got a use case for this at the edge of our multiple DCs, but would need OSPF support! Are you thinking about this at all yet?

multiple maps

Create Generic weather maps :

  • allow multiple maps and select which one to display
  • allow custom legend per user/map
  • allow custom icons in the external map

Feature - Allow tags on Devices

For tracking

Allow isis_routers to have tags.
Allow user to build and assign new tags as needed

Expose tags to nornir inventory.

An example use case would be :

  • Tag a router with 'peering' so that the get_bgp_peers.py will match only that device.

pyez breaking nornir inventory path

Open for tracking.

Nornir scripts are failling with the following error.

Failed to import 'nornir.plugins.inventory.simple.SimpleInventory'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/nornir/core/deserializer/configuration.py", line 217, in _resolve_import_from_string
module = importlib.import_module(module_name)
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 950, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nornir.plugins.inventory.simple'; 'nornir.plugins.inventory' is not a package

ModuleNotFoundError: No module named 'lnetd_nornir_inventory'

Hello cpmarvin

I am following the install instructions. https://github.com/cpmarvin/lnetd/wiki/Install

but I get the following error

python3 app_v2.py

Traceback (most recent call last):
File "app_v2.py", line 85, in
app = create_app()
File "app_v2.py", line 75, in create_app
register_blueprints(app)
File "app_v2.py", line 38, in register_blueprints
module = import_module('{}.routes'.format(module_name))
File "/Users/vcappuccio/.pyenv/versions/3.6.8/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/Users/vcappuccio/src/lnetd/web_app/prov_v2/routes.py", line 11, in
from .mutils.deploy_nornir import nornir_config
File "/Users/vcappuccio/src/lnetd/web_app/prov_v2/mutils/deploy_nornir.py", line 10, in
from lnetd_nornir_inventory import LnetDInventory
ModuleNotFoundError: No module named 'lnetd_nornir_inventory

Could you kindly advice?

thank you!
Victor

Feature - Nornir Plugin

For tracking purpose

Generate Nornir inventory based on LnetD Router information.
Allow nornir access to sqlite3 db directly rather than API.
Allow nornir to decrypt user password based on master_key.

Web App - Device Inventory Index out of bounds.

Open for tracking

Web app endpoint /inventory/inventory_device will fail with "IndexError: index out of bounds" due to hardcoded device name in the route.py file.

@blueprint.route('/inventory_device', methods=['GET', 'POST'])
@login_required
def inventory_device():
device_cc = request.form.get('device_cc')
if (device_cc == None):
device_cc = 'gb-pe8-lon'

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.