Webhook not fired for the cable object when a device is deleted #11368

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

Originally created by @soumiksamanta on GitHub (Jul 11, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.5

Python Version

3.10

Steps to Reproduce

  1. Create a POST webhook with event rule for device and cable and event types Object created, Object updated, Object deleted
  2. Create 2 devices (D1 and D2)
  3. Webhook sent for device creations
  4. Create a cable using A= D1-intf1 and B=D2-intf1
  5. Webhook sent for cable creation
  6. Delete D1
  7. Webhook received for device D1 deletion
  8. Cable is updated with only one termination B=D2-intf1

Expected Behavior

Since netbox updated the cable, webhook should be sent for the cable object

Observed Behavior

Observed:

No webhook received for the cable update

Originally created by @soumiksamanta on GitHub (Jul 11, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.5 ### Python Version 3.10 ### Steps to Reproduce 1. Create a POST webhook with event rule for device and cable and event types Object created, Object updated, Object deleted 2. Create 2 devices (D1 and D2) 3. Webhook sent for device creations 4. Create a cable using A= D1-intf1 and B=D2-intf1 5. Webhook sent for cable creation 6. Delete D1 7. Webhook received for device D1 deletion 8. Cable is updated with only one termination B=D2-intf1 ### Expected Behavior Since netbox updated the cable, webhook should be sent for the cable object ### Observed Behavior Observed: No webhook received for the cable update
adam added the type: bugtopic: cablingtopic: event rules labels 2025-12-29 21:44:18 +01:00
adam closed this issue 2025-12-29 21:44:18 +01:00
Author
Owner

@jnovinger commented on GitHub (Jul 14, 2025):

@soumiksamanta , since the connection from D1-intf1 to the cable is not actually recorded in a cable object, but rather a cable termination object, you'll need to add Cable Termination to the objects being monitored in the even rule. When I do so, I do see a webhook POST fired for the cable termination object (that even references the cable in question).

This is acting as designed.

@jnovinger commented on GitHub (Jul 14, 2025): @soumiksamanta , since the connection from D1-intf1 to the cable is not actually recorded in a cable object, but rather a cable termination object, you'll need to add `Cable Termination` to the objects being monitored in the even rule. When I do so, I do see a webhook POST fired for the cable termination object (that even references the cable in question). This is acting as designed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11368