-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.3.6
Python version
3.9
Steps to Reproduce
- Add a custom field
- Model: IPAM > prefix
- Name: gateway
- Type: object
- Object type: IPAM > IP address
- Add some IP addresses (being out of sorted order)
- 172.16.42.1/24
- 172.16.10.1/24
- 172.16.128.1/24
- 172.16.6.1/24
- Add some prefixes, using the added IP address objects for the custom gateway field
- 172.16.42.0/24 w/ 172.16.42.1/24
- 172.16.10.0/24 w/ 172.16.10.1/24
- 172.16.128.0/24 w/ 172.16.128.1/24
- 172.16.6.0/24 w/ 172.16.6.1/24
- View the prefix list, and configure the table to include the custom gateway field
- click on the gateway column header to sort by the custom field
Expected Behavior
Gateway column to be in sorted IP address order:
172.16.6.1/24
172.16.10.1/24
172.16.42.1/24
172.16.128.1/24
Observed Behavior
Gateway column is sorted by object id (creation order):
172.16.42.1/24
172.16.10.1/24
172.16.128.1/24
172.16.6.1/24
Non-custom columns (eg: site) are sorted by their name, and not their ID
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application