networktocode / ntc-netbox-plugin-onboarding

A plugin for NetBox to easily onboard new devices.
Other
246 stars 46 forks source link

Onboarding does not trigger webhook "device->create" #69

Closed misch42 closed 4 years ago

misch42 commented 4 years ago

Environment

When onboarding a device the webhook for device creation is not triggered.

I did create a webhook with dcim->device create and update. It works if I create or update a new device manually. But onboarding the device does not trigger the webhook.

You also can this behaviour in the changelog of the device. If the device was onboarded, the changelog is empty.

Steps to Reproduce

  1. Create a webhook for device->create
  2. onboard a device
  3. webhook is not triggered.

Expected Behavior

webhook to be triggered.

Observed Behavior

nothing.

dgarros commented 4 years ago

@misch42 after investigation, it's expected that any changes done asynchronously in NetBox (within a worker) will not generate a webhook. Unfortunately there is nothing we can do currently within this project to fix that but I'll update the FAQ

misch42 commented 4 years ago

Bad. How can I trigger some follow-up process after onboarding a new device? i.e. I want to automatically get all interfaces into netbox. Or automatically update the links to other devices.

misch42 commented 4 years ago

Is there any kind of hook from within the onboarding plugin? Would that be an additional feature?

dgarros commented 4 years ago

Not currently but we are working on it