Is it possible to trigger an Event Rule ONLY when an Interface VLAN changes? #22222
Replies: 1 comment 2 replies
-
|
Not sure if the In fact, I'm not sure how to determine what properties are available in the context of an Event Rule and these appear to be different than what is sent by default by the Webhooks. For example, a delivered Webhook has branch context wrapped up in a I ended up deciding to build an event handler middleware which can properly apply logic. Easy to see the full payload you're working with this way. Unfortunately, this does mean we'll be sending a number of requests that will ultimately be dropped by the handler. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am trying to set up an Event Rule in NetBox v4.6.0 that triggers a Webhook, but only when the untagged_vlan of an interface actually changes.
I want to automate our network configuration using Ansible. When a user changes an interface's VLAN in NetBox, it should trigger a Webhook to Ansible to automatically reconfigure the actual switch port.
Because running Ansible playbooks takes resources, I want to avoid unnecessary triggers. If someone updates other fields on the interface (like just changing the description or MTU), the Event Rule should not fire.
Beta Was this translation helpful? Give feedback.
All reactions