after delete device with primary IP don't call webhook for delete #9941

Closed
opened 2025-12-29 21:24:44 +01:00 by adam · 1 comment
Owner

Originally created by @janhlavin on GitHub (Jul 3, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.6

Python Version

3.11

Steps to Reproduce

  1. create event rule for create/update/delete of device with webhook call
  2. create device with primary IP
  3. delete device (from step 2)

Expected Behavior

generate 2 webhook call:

  1. update (after unset primary IP)
  2. delete (after final device delete)

Observed Behavior

generate 1 webhook call:

  1. update (after unset primary IP)
Originally created by @janhlavin on GitHub (Jul 3, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.6 ### Python Version 3.11 ### Steps to Reproduce 1. create event rule for create/update/delete of device with webhook call 2. create device with primary IP 3. delete device (from step 2) ### Expected Behavior generate 2 webhook call: 1. update (after unset primary IP) 2. delete (after final device delete) ### Observed Behavior generate 1 webhook call: 1. update (after unset primary IP)
adam added the type: bugstatus: acceptedseverity: mediumtopic: event rules labels 2025-12-29 21:24:44 +01:00
adam closed this issue 2025-12-29 21:24:44 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 4, 2024):

generate 2 webhook call:

The desired behavior is to transmit only one webhook per object per request, regardless of how many changes were made to the object. However, the webhook should indicate the deletion event, rather than the update event resulting from remove of the device's primary IP address.

@jeremystretch commented on GitHub (Jul 4, 2024): > generate 2 webhook call: The desired behavior is to transmit only one webhook per object per request, regardless of how many changes were made to the object. However, the webhook should indicate the deletion event, rather than the update event resulting from remove of the device's primary IP address.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9941