-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v3.1.3
Python version
3.9
Steps to Reproduce
-
Attempt to create "Integer" Custom Field named "abcd"
-
Attempt to set value on minimum value "-1"
-
Failed (The value must be greater than 0)
-
Create "Integer" Custom Field named "abcd" on any model (all default)
-
Modify the value of the custom field through ansible (API??)
-
Failed (The value must be greater than 0)
I think the problem is related to custom validation? From GUI, if custom field has not set anything, it works as usual. With others, it doesn't due to custom validation introduced?
Expected Behavior
-
Can set integer custom field minimum value to negative.
-
Can update integer custom fields to -1 through ansible or API. (this one is inconsistent, I could update in some case (not sure), sometimes not)
Observed Behavior
The value must be greater than 0. GUI error and ansible error (update VM custom fields)