netbox icon indicating copy to clipboard operation
netbox copied to clipboard

`X IPs available` sorting not resetable from `IPAM -> Prefixes -> (prefix) -> IP Addresses` menu

Open Azbests opened this issue 3 years ago • 3 comments

NetBox version

v3.2.2

Python version

3.8

Steps to Reproduce

  1. Go to IPAM -> Prefixes -> (prefix) -> IP Addresses
  2. Resort table by any of columns

Expected Behavior

X IPs available should be above/below/in-middle where needed.

Observed Behavior

X IPs available now are sorted like standard entries and are always positioned above/below in ip list. And there is no way to reset this view from this table.

image

Note: There is a work around suggested by Simon T to clear table preferences for IPAddressTable in /user/preferences/. Which will return this table to default sorting with X IPs available positioned correctly.

Azbests avatar May 10 '22 11:05 Azbests

The fix here would seem to be to remove the available IP annotations entirely when ordering by an attribute other than IP address.

jeremystretch avatar May 11 '22 13:05 jeremystretch

Another workaround would be to manually edit the URL and enter a value after "sort" that does not correspond to any column as stated here.

A simple fix could be to add a button or textlink pointing to /ipam/prefixes//ip-addresses/?sort=default. This could be adapted for any other section.

dreng avatar May 12 '22 16:05 dreng

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] avatar Jul 12 '22 04:07 github-actions[bot]