Skip to content

[Bug]: Sorting the host column of interface assignment leads to an error #245

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

Closed
pheus opened this issue Mar 21, 2025 · 0 comments · Fixed by #246
Closed

[Bug]: Sorting the host column of interface assignment leads to an error #245

pheus opened this issue Mar 21, 2025 · 0 comments · Fixed by #246
Labels
bug Something isn't working

Comments

@pheus
Copy link
Contributor

pheus commented Mar 21, 2025

NetBox access-list plugin version

v1.8.1

NetBox version

v4.2.2

Steps to Reproduce

Sorting the Host column in the Interface Assignments view results in a FieldError. It appears that the column references a non-existent field.

  1. Create a Device with an Interface.
  2. Add an Access List (e.g., "ACL1"), set type to Standard, and assign it to the device.
  3. Add an Interface Assignment to the device's interface.
  4. Navigate to Access Lists → Interface Assignments.
  5. Click to sort the table by the Host column.

Expected Behavior

Sorting by the Host column should work without errors.

Observed Behavior

Sorting causes an error:

FieldError at /plugins/access-lists/interface-assignments/

Cannot resolve keyword 'host' into field. Choices are: access_list, access_list_id, assigned_object, assigned_object_id, assigned_object_type, assigned_object_type_id, bookmarks, comments, created, custom_field_data, direction, id, interface, journal_entries, last_updated, subscriptions, tagged_items, tags, vminterface
@pheus pheus added the bug Something isn't working label Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant