Netbox 2.10.3 permission constraints documentation #5817
-
Hello, I have some questions regarding the Netbox permissons/constraints.
And I tried already a lot of variants. My plan is to limit the output for Prefixes/IP-Addresses/VLANs based on the site_name + tenant etc. Thanks in advance! Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That is the current documentation for Netbox 2.10. The feature was introduced in 2.9.
Which object are you setting this on? If this is on "site" then don't include the Note that the
or
You'll see this if you look carefully at the examples here: https://netbox.readthedocs.io/en/stable/administration/permissions/#example-constraint-definitions Looking at your image though, you're trying to set this attribute on the device component "ConsolePort". I suggest you start with some simpler examples first, like setting it on Device. If you do need to set permissions on ConsolePort, then you'll need to reference attributes which exist on ConsolePort. ConsolePort doesn't have a "site" attribute, but the Device it is attached to does: you'll need something like |
Beta Was this translation helpful? Give feedback.
That is the current documentation for Netbox 2.10. The feature was introduced in 2.9.
Which object are you setting this on? If this is on "site" then don't include the
site__
prefix. However if this is on (say) Device, that's fine because Device has a "site" attribute.Note that the
__in
option requires a list on the RHS: it means "the value appears in this list". Hence you'd need to write either:or
You'll see this if you look carefully at the examples here: https://netbox.readthedocs.io/en/stable/…