Permissions/Constraints for multiple-object cable terminations #11527
Replies: 2 comments 1 reply
-
Dear @georg-again, I've the same issue as yours. Can you explain how you mitigate the constrain to work with at least one connected device is correct? |
Beta Was this translation helpful? Give feedback.
-
TLDR - there is no solution Details: As for the 'at least one' connected device problem: This is also integral part of the constraints. The constraint As such I did not find a reasonable mitigation and my problem is still open. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a special permission that allows users to edit/create/delete cables if they are the "Owner" of both devices.
Up to v3.3.0 I used a permission-contraint that used 'termination_a' and 'termination_b' to check that both ends
have an interface with the correct device connected.
I just found out that 3.3.0 introduced a new data format for cable terminations and my solution does not work anymore.
The changelog (https://github.com/netbox-community/netbox/releases/tag/v3.3.0) claims that the fields were renamed
to 'a_terminations' and 'b_terminations', but I cannot use those in my constraints.
The only option that works is using the complete 'terminations' List in the constraint. This allows me to ensure that
at least one connected interface/device is correct, but not both (or actually: all).
Questions:
Beta Was this translation helpful? Give feedback.
All reactions