Replies: 5 comments 6 replies
-
With a Custom Validator. How you get from an IPAddress object to its parent Prefix is not obvious though, I can't find a helper for this. The following logic is borrowed from
You'd then have to sort this by prefix length, and take the longest one. |
Beta Was this translation helpful? Give feedback.
-
Hi Brian, thank you for your answer. I new with Netbox customization and scripting. Cheers.
|
Beta Was this translation helpful? Give feedback.
-
Many thanks Brian for your help. Cheers
|
Beta Was this translation helpful? Give feedback.
-
The full backtrace did not show explicitly the error or I don't know where to find it. Secondly, I would like to use user's group in my validation script, which object and attribute should I query to get it ? Regards. |
Beta Was this translation helpful? Give feedback.
-
Here is the backtrace : Request Method: POST Django Version: 5.0.8 Traceback (most recent call last): Exception Type: ValueError at /ipam/ip-addresses/add/ |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have an existing prefix, how can I prevent a user from adding an IP address in this prefix with a different tenant ?
Cheers.
Beta Was this translation helpful? Give feedback.
All reactions