Error message when try to edit IP-address #4154

Closed
opened 2025-12-29 18:33:30 +01:00 by adam · 3 comments
Owner

Originally created by @pboatone on GitHub (Sep 30, 2020).

Environment

Python version: 3.8.2
NetBox version: 2.9.4

Steps to Reproduce

  1. When go to IP-Address with a Nat inside
  2. then edit this IP Address
  3. error displayed on screen

Expected Behavior

Normaly you can edit this IP

Observed Behavior

Error message displayed
<class 'AttributeError'>

'NoneType' object has no attribute 'pk'

Originally created by @pboatone on GitHub (Sep 30, 2020). ### Environment Python version: 3.8.2 NetBox version: 2.9.4 ### Steps to Reproduce 1. When go to IP-Address with a Nat inside 2. then edit this IP Address 3. error displayed on screen ### Expected Behavior Normaly you can edit this IP ### Observed Behavior Error message displayed <class 'AttributeError'> 'NoneType' object has no attribute 'pk'
adam closed this issue 2025-12-29 18:33:30 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 30, 2020):

Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v2.9.4. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data.

@jeremystretch commented on GitHub (Sep 30, 2020): Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v2.9.4. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data.
Author
Owner

@jeremystretch commented on GitHub (Oct 9, 2020):

Closing due to lack of activity.

@jeremystretch commented on GitHub (Oct 9, 2020): Closing due to lack of activity.
Author
Owner

@pboatone commented on GitHub (Oct 12, 2020):

Same issue rebuilded today:

  1. Go to a device
  2. Add an interface "eth0"
    3 Add IP to interface "172.16.3.0/24"
    4 Edit IP -> add a NAT IP(inside) like "192.168.3.0/24"
  3. klick "OK"
  4. Following Error when trying to edit IP:

2020-10-12 15_07_23-Window
2020-10-12 15_07_48-Window
2020-10-12 15_30_38-Window

@pboatone commented on GitHub (Oct 12, 2020): Same issue rebuilded today: 1. Go to a device 2. Add an interface "eth0" 3 Add IP to interface "172.16.3.0/24" 4 Edit IP -> add a NAT IP(inside) like "192.168.3.0/24" 5. klick "OK" 6. Following Error when trying to edit IP: ![2020-10-12 15_07_23-Window](https://user-images.githubusercontent.com/67209365/95752095-cdfa5300-0c9f-11eb-995a-a30aef71b87f.png) ![2020-10-12 15_07_48-Window](https://user-images.githubusercontent.com/67209365/95752103-d3f03400-0c9f-11eb-822b-e1956bc0d3cb.png) ![2020-10-12 15_30_38-Window](https://user-images.githubusercontent.com/67209365/95752183-eec2a880-0c9f-11eb-811c-7ce08f91c529.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4154