Project

General

Profile

Actions

Bug #7848

open

NDP Table Sort by Expiration Error

Added by Daryl Morse over 6 years ago. Updated over 4 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:
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.

Actions #1

Updated by Daryl Morse over 6 years ago

This also affects the ARP table in 2.4.0 RC.

Actions #2

Updated by Jim Pingle over 4 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.

Actions #3

Updated by Jim Pingle over 4 years ago

  • Category changed from Web Interface to Diagnostics
Actions #4

Updated by Jim Pingle over 4 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.

Actions

Also available in: Atom PDF