Replies: 3 comments 2 replies
-
Hi, I have a similar problem with custom validations. dcim.device is working below, but virtualization.virtualmachine is not.
|
Beta Was this translation helpful? Give feedback.
-
I suspect it might be because interfaces are not an attribute of the ip-address object but dns_name is. The following is what you get from a GET request to the ip address endpoint '{ I could totally be wrong but that is my hunch. I am not sure what workarounds there are if what I suspect is correct. |
Beta Was this translation helpful? Give feedback.
-
@ben-marquardt-tfs I get this error:
Just realized that your validator is actually two validators for two separate objects. So you are not doing what I am doing. Im trying to establish two conditions for one object. Looks like I may have to look into this approach: https://docs.netbox.dev/en/stable/customization/custom-validation/#custom-validation-logic |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Running:
Im trying to get a customvalidator for
ipam.ipaddress
objects:The above does not work.
it only works with the
dns_name
key but not with the interface one...What am i doing wrong?
Any input is appreciated!
Thank you,
Dave
Beta Was this translation helpful? Give feedback.
All reactions