Skip to content

Webhook condition for having a primary IP doesn't appear to be working #11459

@AesoSpadez

Description

@AesoSpadez

NetBox version

v3.4.2

Python version

3.10

Steps to Reproduce

  1. Create a webhook, content type 'DCIM > Device', all events, with the condition:
    { "and": [ { "attr": "primary_ip", "value": "", "negate": true } ] }
  2. Create a site, all defaults.
  3. Create a device role, all defaults.
  4. Create a manufacturer, all defaults.
  5. Create a device type, all defaults.
  6. Create a device.
  7. Go to the admin panel, check the jobs in the default queue.

Expected Behavior

The webhook does not fire due to the condition of requiring a primary IP.

Observed Behavior

The webhook fires (despite the condition).

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions