Project

General

Profile

Bug #7848

NDP Table Sort by Expiration Error

Added by Daryl Morse about 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Diagnostics
Target version:
-
Start date:
09/07/2017
Due date:
% Done:

0%

Estimated time:
Affected Version:
Affected Architecture:

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.

History

#1 Updated by Daryl Morse about 3 years ago

This also affects the ARP table in 2.4.0 RC.

#2 Updated by Jim Pingle about 1 year 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.

#3 Updated by Jim Pingle about 1 year ago

  • Category changed from Web Interface to Diagnostics

#4 Updated by Jim Pingle about 1 year 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.

Also available in: Atom PDF