custom scripts exempt from duplicate prefix enforcement? #18839
FliesLikeABrick
started this conversation in
General
Replies: 1 comment 2 replies
-
What's the save method used by your script? Does it use the full_clean() method first? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have "unique IP space" (prevent duplicates) enabled on all of our VRFs in NetBox IPAM. The UI properly enforces this as-expected.
However, our Custom Scripts appear to bypass this check. Is this expected? If this is expected, is there an atomic/script-friendly way to "create unless present", or otherwise have something that behaves like an atomic transaction? That is, if we need the script to intentionally check for existence before creation, we would want to avoid a "time of check/time of use" race condition where another action in the environment can create that prefix after the check is performed.
Beta Was this translation helpful? Give feedback.
All reactions