cpmarvin / lnetd Goto Github PK
View Code? Open in Web Editor NEWdynamic network topology from IGP information
License: GNU General Public License v2.0
dynamic network topology from IGP information
License: GNU General Public License v2.0
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.
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
change to a side panel menu to better use the space on the page
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?
Create Generic weather maps :
Allow both IGP and external topology in the same view with an option to display them both or separated.
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 :
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
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 request:
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.
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'
Feature request :
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.