DCIM LLDP Neighbor issue after 2.5 upgrade. #2198

Closed
opened 2025-12-29 17:23:31 +01:00 by adam · 5 comments
Owner

Originally created by @VeNoMouS on GitHub (Dec 11, 2018).

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

Originally created by @VeNoMouS on GitHub (Dec 11, 2018). ### 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 <!-- What happened instead? --> ### Observed Behavior ![image](https://user-images.githubusercontent.com/597545/49829500-7cf34c80-fdf3-11e8-9e4c-57a388d3a7d6.png)
adam added the type: bugstatus: accepted labels 2025-12-29 17:23:31 +01:00
adam closed this issue 2025-12-29 17:23:32 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 11, 2018):

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.

@jeremystretch commented on GitHub (Dec 11, 2018): 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.
Author
Owner

@VeNoMouS commented on GitHub (Dec 12, 2018):

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.

@VeNoMouS commented on GitHub (Dec 12, 2018): 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.
Author
Owner

@bsteinert commented on GitHub (Dec 17, 2018):

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...

@bsteinert commented on GitHub (Dec 17, 2018): 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...
Author
Owner

@jeremystretch commented on GitHub (Dec 17, 2018):

Re-opening to test @bsteinert's scenario.

@jeremystretch commented on GitHub (Dec 17, 2018): Re-opening to test @bsteinert's scenario.
Author
Owner

@bsteinert commented on GitHub (Dec 20, 2018):

@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!

@bsteinert commented on GitHub (Dec 20, 2018): @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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2198