Netbox: DCIM LLDP Neighbor issue after 2.5 upgrade.

Created on 11 Dec 2018  路  5Comments  路  Source: netbox-community/netbox

Environment

  • Python version: 3.6.7
  • NetBox version: 2.5.0

After upgrade from 2.4 to 2.5 we are getting the following error when trying to view a devices lldp neigbhours.

<class 'django.urls.exceptions.NoReverseMatch'>

Reverse for 'device' with keyword arguments '{'pk': ''}' not found. 1 pattern(s) tried: ['dcim/devices/(?P<pk>\\d+)/$']

Steps to Reproduce

DCIM -> devices -> lldp-neighbours

Expected Behavior

For it to work, as in 2.4

Observed Behavior

image

accepted bug

All 5 comments

I'm not able to replicate this on v2.5.0. Going to http://localhost:8000/dcim/devices/<pk>/lldp-neighbors/ works as expected. Please revise your issue to include the exact steps needed to replicate the error on a fresh installation.

We deleted the device and re-created it, and the issue went away, however the issue still only occurred after we upgraded from 2.4 to 2.5, so perhaps there is an issue in the upgrade migration process somewhere...

I am happy for this to be closed as we can not replicate the issue ourselves unless we restore the db and do a 2.4 to 2.5 upgrade again.

i run in to the issue too. In my netbox install this only happens when there is a circuit configured on one port of the device. If there are no circuits, everything works like before.

perhaps something is broken because of the new "cables" feature...

Re-opening to test @bsteinert's scenario.

@jeremystretch i have changed the "device_lldp_neighbors.html" like in "40cb576" on my netbox install and can confirm it works perfect! thank you for the quick fix of this issue!

Was this page helpful?
0 / 5 - 0 ratings