Skip to content
Discussion options

You must be logged in to vote

Yes: your custom script can make outgoing connections (e.g. using requests or napalm), and it can use the Django ORM to make changes within Netbox. If it fails, then the database transaction will be rolled back, but it would be up to you to undo any changes you've already made in your external network.

You should beware that your processing shouldn't take too long, or you'll exceed the webserver timeout (and/or your users may navigate away). That was the reason for webhooks being converted to background tasks in the first place.

TBH, a background workflow with a state machine is a safer way of doing updates to your live network. You can divide the work into multiple steps; retry steps tha…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@remchuk
Comment options

@candlerb
Comment options

@remchuk
Comment options

@candlerb
Comment options

Answer selected by remchuk
@remchuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants