Bug #7848
openNDP Table Sort by Expiration Error
0%
Description
When you try to sort the NDP table by expiration, sorting is based on the value of the first digit, irrespective of the unit of the first digit. This means a 9 second expiration is further down than 8 hour expiration. The expiration should be sorted according to unit and value.
This problem exists in both 2.3.4_1 and 2.4.0 RC.
Updated by Daryl Morse over 7 years ago
This also affects the ARP table in 2.4.0 RC.
Updated by Jim Pingle over 5 years ago
- Category set to Web Interface
- Assignee set to Jim Pingle
- Target version set to 2.5.0
I fixed a similar sorting issue recently, IIRC it was something about setting a sorting type for the column.
Updated by Jim Pingle over 5 years ago
- Category changed from Web Interface to Diagnostics
Updated by Jim Pingle over 5 years ago
- Assignee deleted (
Jim Pingle) - Target version deleted (
2.5.0)
The sortable library doesn't have a sorting type that can parse the duration in the format output by ndp and I didn't see a viable way to parse it out quickly. There may be a way to parse the output eventually but it's a bit tough since it is in a format of "<hours>h<minutes>m<seconds>s" and some of those values may be omitted if they are zero.
Unfortunately ndp doesn't yet support libxo either, which helped with parsing the ARP table.