IntegrityError when running custom scripts inside branches #148
Labels
app: branching
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
type: bug
A confirmed report of unexpected behavior in the application
Plugin Version
0.4.0
NetBox Version
4.1
Python Version
3.10.12
Steps to Reproduce
This example script can be used to create VRFs and RDs.
And here's the error I receive when running this custom script
Expected Behavior
All VRFs/RD should be created successfully.
Observed Behavior
The first VRF is created, but the second fails. It looks like the lookup, e.g.
VRF.objects.all()
, looks for data from the main branch. This works for the first iteration and a new VRF is created in the new branch. But for the second iteration, the script wants to reserve the same VRF/RD again because it's still available on the main branch. But then it fails because that RD is already taken in my new branch...The text was updated successfully, but these errors were encountered: