Skip to content

FieldError in tunnel termination table when sorting on tenant/tenant_group #19610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jnovinger opened this issue May 30, 2025 · 0 comments · May be fixed by #19612
Open

FieldError in tunnel termination table when sorting on tenant/tenant_group #19610

jnovinger opened this issue May 30, 2025 · 0 comments · May be fixed by #19612
Assignees
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jnovinger
Copy link
Member

jnovinger commented May 30, 2025

Deployment Type

Self-hosted

NetBox Version

v4.3.1

Python Version

3.10

Steps to Reproduce

  1. Navigate to /vpn/tunnel-terminations/
  2. Click the 'Configure Table' button
  3. Select 'Tenant' and 'Tenant Group' from available columns in to selected columns
  4. Click the 'Save' button
  5. Click on either the 'Tenant' or 'Tenant Group' column

Expected Behavior

The 'Tenant' and 'Tenant Group' columns should be orderable, like they are for other model tables.

Observed Behavior

FieldError at /vpn/tunnel-terminations

Cannot resolve keyword 'tenant' into field. Choices are: created, custom_field_data, id, interface, last_updated, outside_ip, outside_ip_id, role, tagged_items, tags, termination, termination_id, termination_type, termination_type_id, tunnel, tunnel_id, vminterface

Notes

Discovered while working on fixing #19487.

@jnovinger jnovinger added type: bug A confirmed report of unexpected behavior in the application status: needs triage This issue is awaiting triage by a maintainer status: accepted This issue has been accepted for implementation severity: low Does not significantly disrupt application functionality, or a workaround is available and removed status: needs triage This issue is awaiting triage by a maintainer labels May 30, 2025
@jnovinger jnovinger self-assigned this May 30, 2025
@jnovinger jnovinger changed the title FieldError in tunnel termination table breaks when sorting on tenant/tenant_group FieldError in tunnel termination table when sorting on tenant/tenant_group May 30, 2025
jnovinger added a commit that referenced this issue May 30, 2025
It turns out that the TunnelTermination model doesn't implement the
tenancy "protocol", in that there are no foreign keys to a tenant or
tenant group. It looks like TenancyColumnsMixin was added to
TunnelTerminationTable by mistake in completing #9816.
jnovinger added a commit that referenced this issue May 30, 2025
jnovinger added a commit that referenced this issue Jun 4, 2025
It turns out that the TunnelTermination model doesn't implement the
tenancy "protocol", in that there are no foreign keys to a tenant or
tenant group. It looks like TenancyColumnsMixin was added to
TunnelTerminationTable by mistake in completing #9816.
jnovinger added a commit that referenced this issue Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant