Interface Connection - No 'pk' Attribute #790

Closed
opened 2025-12-29 16:25:51 +01:00 by adam · 0 comments
Owner

Originally created by @bsakdol on GitHub (Mar 24, 2017).

Issue type: Bug

Python version: 2.7.12
NetBox version: 1.9.3

When connecting two device interfaces, after clicking the "Connect and Add Another" button, the below error is displayed. These devices are not currently assigned to a rack. When I try to connect two racked device interfaces, the error does not appear after clicking the "Connect and Add Another" button. Both devices do show as connected on their respective interfaces, via the web UI, but the only way to proceed, after the error appears, is to go "home" and navigate back to the device.

<type 'exceptions.AttributeError'>

'NoneType' object has no attribute 'pk'
Originally created by @bsakdol on GitHub (Mar 24, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: Bug <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** 2.7.12 **NetBox version:** 1.9.3 <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. --> When connecting two device interfaces, after clicking the "Connect and Add Another" button, the below error is displayed. These devices are not currently assigned to a rack. When I try to connect two racked device interfaces, the error does not appear after clicking the "Connect and Add Another" button. Both devices do show as connected on their respective interfaces, via the web UI, but the only way to proceed, after the error appears, is to go "home" and navigate back to the device. ``` <type 'exceptions.AttributeError'> 'NoneType' object has no attribute 'pk'
adam added the type: bug label 2025-12-29 16:25:51 +01:00
adam closed this issue 2025-12-29 16:25:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#790