Add Tenant Group to class "ipam.models.vlans.VLAN" #4966

Closed
opened 2025-12-29 19:22:44 +01:00 by adam · 2 comments
Owner

Originally created by @thoms27 on GitHub (Jun 4, 2021).

NetBox version

v2.11.5

Feature type

Data model extension

Proposed functionality

Hi,

Is it possible to add tenant group name to the class "ipam.models.vlans.VLAN" ?
I would like to filter with a group permission the access to the VLAN view only for the VLAN of a tenant group.

Thank you in advance

Actually only theses paramters are allowed:
created, custom_field_data, description, group, group_id, id, interfaces_as_tagged, interfaces_as_untagged, journal_entries, last_updated, name, prefixes, role, role_id, site, site_id, status, tagged_items, tags, tenant, tenant_id, vid, vminterfaces_as_tagged, vminterfaces_as_untagged

Thank in advance

Use case

Filter the VLAN view for a particular Tenant Group

Database changes

No response

External dependencies

No response

Originally created by @thoms27 on GitHub (Jun 4, 2021). ### NetBox version v2.11.5 ### Feature type Data model extension ### Proposed functionality Hi, Is it possible to add tenant group name to the class "ipam.models.vlans.VLAN" ? I would like to filter with a group permission the access to the VLAN view only for the VLAN of a tenant group. Thank you in advance Actually only theses paramters are allowed: created, custom_field_data, description, group, group_id, id, interfaces_as_tagged, interfaces_as_untagged, journal_entries, last_updated, name, prefixes, role, role_id, site, site_id, status, tagged_items, tags, tenant, tenant_id, vid, vminterfaces_as_tagged, vminterfaces_as_untagged Thank in advance ### Use case Filter the VLAN view for a particular Tenant Group ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:22:44 +01:00
adam closed this issue 2025-12-29 19:22:44 +01:00
Author
Owner

@drmsoffall commented on GitHub (Jun 5, 2021):

You should be able to drill down in permissions with a double-underscore. Try this constraint if you want to specify the tenant group's slug:

{"tenant__group__slug": "your_group_slug_here"}

Check the examples under Constraints here for more help: https://netbox.readthedocs.io/en/stable/administration/permissions/

@drmsoffall commented on GitHub (Jun 5, 2021): You should be able to drill down in permissions with a double-underscore. Try this constraint if you want to specify the tenant group's slug: `{"tenant__group__slug": "your_group_slug_here"}` Check the examples under Constraints here for more help: https://netbox.readthedocs.io/en/stable/administration/permissions/
Author
Owner

@thoms27 commented on GitHub (Jun 7, 2021):

Hi,

Thank you for your answer.
It seems working as expected. Thank you :-)
It's works too with tenant__group__name. I'm not familiar with the syntax :-)

Regards,

@thoms27 commented on GitHub (Jun 7, 2021): Hi, Thank you for your answer. It seems working as expected. Thank you :-) It's works too with tenant__group__name. I'm not familiar with the syntax :-) Regards,
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4966