-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate NAPALM to support pulling live data from devices #1348
Comments
Just to comment on this, I agree that this integration would be nice, however it appears to contradict with what NetBox was originally intended to be. To quote from the documentation, "As such, automated import of live network state is strongly discouraged." Perhaps that goal has changed as NetBox has matured. While I would be interested in the functionality, great care would be needed to ensure that the information gathered from NAPALM is "vetted by a human to ensure its integrity" with a few This is just me thinking out loud, not necessarily "gospel". |
@bdlamprecht The intent here is provide a convenient way of retrieving data from live devices for display and (to some extent) validation. For example, NetBox currently supports pulling live LLDP neighbors from a device to compare with what's defined in its database and highlight any discrepancies (this functionality will be replaced by NAPALM). The key is that none of this data is being written to NetBox's database: it is only being retrieved and inspected. The one exception to this will be inventory data, which makes sense to import directly from devices. Unfortunately, NAPALM doesn't currently support collecting inventory data so this functionality may still be a ways off. |
I have this working in the |
I agree this is a huge deal. I've been waiting for this announcement for a
while and can't wait to test it once the stable is out.
On Mon, Jul 17, 2017 at 10:35 bdlamprecht ***@***.***> wrote:
Wow, very cool that you got this working already! Nice work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1348 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARj55TReWAg72RQn_ntm-4biOMQWt2iSks5sO5tGgaJpZM4OYaD6>
.
--
Roman N. Kutsel
|
Great feature, will definitely come handy. Would it be possible to run queries via dedicated bastion CM host at some point? |
It would be great to use NAPALM to compare the output of get_interfaces_ip against the existing table, just like LLDP. Even better would be an option to import interfaces without any data, or manually affirm an overwrite. |
+1 for a bit of automation Automatically populating the interfaces would be a big big help anyway. |
Hello, First awesome tool, I love netbox! ! EDIT I have just integrated napalm (running locally on ubuntu 16.04, version 2.3.3, via: pip3 install napalm) But, With lldp running, I am not able to get neighbor information under the neighbors tab. The router does display lldp information as following; Device ID Local Intf Hold-time Capability Port ID Total entries displayed: 2 I guess I am missing something, Not too sure where to check for any troubleshooting. Thank you for you help |
Issue type: Feature request
Python version: 2.7.6
NetBox version: 2.0.10
Today, NetBox has very limited support for interacting with network devices. It has some custom RPC code for connecting to some Juniper, Cisco, and Opengear devices to pull inventory and LLDP information, but this functionality is very limited and error-prone. We can integrate the NAPALM automation project to abstract the RPC logic and support much more functionality with a wide array of devices.
At a high level, here are some changes that will be needed:
napalm_driver
field to dcim.Platform (new database migration)napalm_driver
field to list all built-in drivers but also allow free text to specify a custom driverhelp_text
should indicate that NAPALM must be installednapalm_read
to dcim.Devicenapalm
detail route to dcim.api.DeviceViewSet. This will accept the NAPALM operation as part of the URLGET /api/dcim/devices/<pk>/napalm/get_facts/
The text was updated successfully, but these errors were encountered: