Device webhook prechanged snapshot is None if edit assigned IP #5600

Closed
opened 2025-12-29 19:29:59 +01:00 by adam · 1 comment
Owner

Originally created by @top1ing on GitHub (Nov 3, 2021).

NetBox version

v3.0.9

Python version

3.9

Steps to Reproduce

  1. Create a Webhook:
    Enabled: True
    Models: dcim | device
    Method: Post
    HTTP Content Type: application/json
    SSL Verification: False
  2. Create a Device DevA with any parameters (Type, Site, Name etc).
  3. Add interface IntA on created device DevA.
  4. Create IPv4 address 10.0.0.1/24. Assign it to interface IntA and make it primary IP for DevA.
  5. After all steps above go to edit page of IP 10.0.0.1/24 and uncheck Make this the primary IP for the device/VM.
  6. Check data on webhook receiver.

Expected Behavior

Both Snapshots (prechanged and postchanged) exists and not equals None.

Observed Behavior

prechanged snapshot is None
postchanged snapshot include correct data.

Originally created by @top1ing on GitHub (Nov 3, 2021). ### NetBox version v3.0.9 ### Python version 3.9 ### Steps to Reproduce 1. Create a Webhook: Enabled: True Models: dcim | device Method: Post HTTP Content Type: application/json SSL Verification: False 2. Create a Device **DevA** with any parameters (Type, Site, Name etc). 3. Add interface **IntA** on created device **DevA**. 4. Create IPv4 address 10.0.0.1/24. Assign it to interface **IntA** and make it primary IP for **DevA**. 5. After all steps above go to edit page of IP 10.0.0.1/24 and uncheck **Make this the primary IP for the device/VM**. 6. Check data on webhook receiver. ### Expected Behavior Both Snapshots (prechanged and postchanged) exists and not equals None. ### Observed Behavior prechanged snapshot is **None** postchanged snapshot include correct data.
adam added the type: bugstatus: duplicate labels 2025-12-29 19:29:59 +01:00
adam closed this issue 2025-12-29 19:29:59 +01:00
Author
Owner

@top1ing commented on GitHub (Nov 7, 2021):

Duplicate with https://github.com/netbox-community/netbox/issues/6389

@top1ing commented on GitHub (Nov 7, 2021): Duplicate with https://github.com/netbox-community/netbox/issues/6389
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5600