Webhook not send change tagged vlans with first try #4836

Closed
opened 2025-12-29 19:21:04 +01:00 by adam · 2 comments
Owner

Originally created by @brandelf68 on GitHub (Apr 27, 2021).

NetBox version

v2.11.2

Python version

3.8

Steps to Reproduce

  1. Add webhook on updating dcim->interface to URL http://localhost:9001 without ssl verify, HTTP method: POST,
    HTTP content type: application/json
  2. Run on terminal session command "nc -4 -l localhost 9001"
  3. Create device and component "interface"
  4. Create one or more vlans
  5. Click "edit" interface on device.
  6. Select mode "tagged".
  7. Add tagged vlan or vlans
  8. Press "update".

Expected Behavior

Output JSON on terminal session with running netcat include data with the tagged vlans

Observed Behavior

Output JSON on terminal session with running netcat not include recently added tagged vlans.
After second try to enter in "edit interface" dialog and press update without any change, output shows added tagged vlans.

Originally created by @brandelf68 on GitHub (Apr 27, 2021). ### NetBox version v2.11.2 ### Python version 3.8 ### Steps to Reproduce 1. Add webhook on updating dcim->interface to URL http://localhost:9001 without ssl verify, HTTP method: POST, HTTP content type: application/json 2. Run on terminal session command "nc -4 -l localhost 9001" 3. Create device and component "interface" 4. Create one or more vlans 5. Click "edit" interface on device. 6. Select mode "tagged". 7. Add tagged vlan or vlans 8. Press "update". ### Expected Behavior Output JSON on terminal session with running netcat include data with the tagged vlans ### Observed Behavior Output JSON on terminal session with running netcat not include recently added tagged vlans. After second try to enter in "edit interface" dialog and press update without any change, output shows added tagged vlans.
adam added the type: bugstatus: duplicate labels 2025-12-29 19:21:04 +01:00
adam closed this issue 2025-12-29 19:21:05 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 28, 2021):

VLAN associations utilize a many-to-many relationship, which requires two operations on the database. Incidentally, this just came up in #6284; please see my comments there for more background. The second webhook sent by NetBox will contain the VLAN assignments.

Also, FYI: You can run manage.py webhook_receiver locally on the NetBox server and point webhooks to http://localhost:9000 for convenient testing.

@jeremystretch commented on GitHub (Apr 28, 2021): VLAN associations utilize a many-to-many relationship, which requires two operations on the database. Incidentally, this just came up in #6284; please see my comments there for more background. The second webhook sent by NetBox will contain the VLAN assignments. Also, FYI: You can run `manage.py webhook_receiver` locally on the NetBox server and point webhooks to `http://localhost:9000` for convenient testing.
Author
Owner

@jeremystretch commented on GitHub (May 4, 2021):

Closing this out as effectively a duplicate of #6284; will focus discussion there.

@jeremystretch commented on GitHub (May 4, 2021): Closing this out as effectively a duplicate of #6284; will focus discussion there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4836