Skip to content

On a failing custom script, database revert doesn't work #270

@wvandervaart

Description

@wvandervaart

Plugin Version

0.5.4.

NetBox Version

4.2.9

Python Version

3.10

Steps to Reproduce

We have a custom script which creates vlans, and links them to VNI's, When the script fails on creating the VNI, because it's not unique. Normally there is a rollback which reverts all database changes from the script.
However, when we run it in a branch, the revert doesn't work, and the VLAN which is created first in the script is still in the database.

Expected Behavior

Database revert should still remove all created objects on script failure.

Observed Behavior

Not all database changes are reverted on script failure.

Metadata

Metadata

Assignees

Labels

app: branchingseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedstatus: blockedtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions