Sort by MAC address crashes "interfaces" tab view... #10678

Closed
opened 2025-12-29 21:34:38 +01:00 by adam · 1 comment
Owner

Originally created by @christophenouvel on GitHub (Jan 21, 2025).

Originally assigned to: @DanSheps on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.2.2

Python Version

3.11

Steps to Reproduce

  1. Once logged in, clic "virtualization",
  2. clic "Virtual machines"
  3. clic a VM name which owns more than one interface (in order to be able to sort)
  4. clic "interfaces"
  5. clic to sort by "mac address".
    It's dead, you can not come back to ani "interfaces" tab anymore 👍

Expected Behavior

View "interfaces" tab like before MAC ADDRESS became an object.

Observed Behavior

Server Error

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'mac_address' into field. Choices are: _name, bookmarks, bridge, bridge_id, bridge_interfaces, child_interfaces, created, custom_field_data, description, enabled, fhrp_group_assignments, id, ip_addresses, journal_entries, l2vpn_terminations, last_updated, mac_addresses, mode, mtu, name, parent, parent_id, primary_mac_address, primary_mac_address_id, qinq_svlan, qinq_svlan_id, subscriptions, tagged_items, tagged_vlans, tags, tunnel_terminations, untagged_vlan, untagged_vlan_id, virtual_machine, virtual_machine_id, vlan_translation_policy, vlan_translation_policy_id, vrf, vrf_id

Python version: 3.11.2
NetBox version: 4.2.2
Plugins: None installed

If further assistance is required, please post to the NetBox discussion forum on GitHub.
Home Page

Originally created by @christophenouvel on GitHub (Jan 21, 2025). Originally assigned to: @DanSheps on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.2.2 ### Python Version 3.11 ### Steps to Reproduce 1. Once logged in, clic "virtualization", 2. clic "Virtual machines" 3. clic a VM name which owns more than one interface (in order to be able to sort) 4. clic "interfaces" 5. clic to sort by "mac address". It's dead, you can not come back to ani "interfaces" tab anymore 👍 ### Expected Behavior View "interfaces" tab like before MAC ADDRESS became an object. ### Observed Behavior Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'django.core.exceptions.FieldError'> Cannot resolve keyword 'mac_address' into field. Choices are: _name, bookmarks, bridge, bridge_id, bridge_interfaces, child_interfaces, created, custom_field_data, description, enabled, fhrp_group_assignments, id, ip_addresses, journal_entries, l2vpn_terminations, last_updated, mac_addresses, mode, mtu, name, parent, parent_id, primary_mac_address, primary_mac_address_id, qinq_svlan, qinq_svlan_id, subscriptions, tagged_items, tagged_vlans, tags, tunnel_terminations, untagged_vlan, untagged_vlan_id, virtual_machine, virtual_machine_id, vlan_translation_policy, vlan_translation_policy_id, vrf, vrf_id Python version: 3.11.2 NetBox version: 4.2.2 Plugins: None installed If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub. [Home Page](http://netbox.sud.minint.fr/)
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 21:34:38 +01:00
adam closed this issue 2025-12-29 21:34:38 +01:00
Author
Owner

@bctiemann commented on GitHub (Jan 21, 2025):

Also happens on VMInterface list view

@bctiemann commented on GitHub (Jan 21, 2025): Also happens on VMInterface list view
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10678