Permissions constraints generates error messages #6297

Closed
opened 2025-12-29 19:39:04 +01:00 by adam · 0 comments
Owner

Originally created by @qutach on GitHub (Apr 5, 2022).

NetBox version

v3.1.10

Python version

3.9

Steps to Reproduce

We are trying to configure constrains for the object type "IPAM > IP address".
Enter the following in Constraints box:
{"vrf__in": ["blue-1", "red-2"]}

This generates an error message
Field 'id' expected a number but got 'blue-1'.

Works if we use {"vrf_id__in": [1, 2]}

Expected Behavior

That it works with using vrf names in constrains for object IP Adresses

Observed Behavior

bild1
bild2

Originally created by @qutach on GitHub (Apr 5, 2022). ### NetBox version v3.1.10 ### Python version 3.9 ### Steps to Reproduce We are trying to configure constrains for the object type "IPAM > IP address". Enter the following in Constraints box: `{"vrf__in": ["blue-1", "red-2"]}` This generates an error message `Field 'id' expected a number but got 'blue-1'.` Works if we use `{"vrf_id__in": [1, 2]}` ### Expected Behavior That it works with using vrf names in constrains for object IP Adresses ### Observed Behavior ![bild1](https://user-images.githubusercontent.com/47136329/161749796-541d5906-df83-4576-bb25-cdfb94166efb.png) ![bild2](https://user-images.githubusercontent.com/47136329/161749812-69a7414b-dc9f-4dbe-a95a-e06e15b6e316.png)
adam added the type: bug label 2025-12-29 19:39:04 +01:00
adam closed this issue 2025-12-29 19:39:05 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6297