View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|1593||RackTables||IPv4/IPv6/SLB||public||2016-03-07 21:04||2016-05-14 17:30|
|OS||Ubuntu||OS Version||14.04.4 LTS|
|Summary||1593: Ability to sort IP addresses by interface name|
|Description||It would be nice to be able to sort IP addresses by interface name.|
|Tags||No tags attached.|
|I'm not sure which page-tab do you mean? Object's IP allocations are already sorted by ifname.|
Actually, no. If you go and see the 'View' tab of an object, you'll see under the IP address section, that the interfaces are not sorted by the addresses or interfaces' names themselves. In fact, I really do not know which is the sorting criteria ... (may be an internal SQL key ...). To see this, have a look at the attached screenshot ...
My request is to be able to sort the IP address section by the interfaces' names (or, also, by the IP address value).
I see, now I remember that we've already discussed this issue in the ML.
They are sorted, but not literally. The sort criteria works bad in your case.
Apparently there is no such a generic sort function that will comply in any case. We need to select the sort criteria somehow. Neither literal, nor numeric, nor natural sort will work in all the cases.
Maybe we need a config variable that selects the sort function based on interface name. I leave this ticket open waiting for a solution to come up.
Hi! May be one option is the one that you describe: adding a variable that will define the sorting criteria. One possible place for such a variable would under the 'Configuration -> User Interface'.
Then, inside the PHP code, it could be done something like this:
$ipOrder = (getConfigVar ('IPV4_ORDER_CRITERIA') == 'whatEver');
Cheers and thanks!
|2016-03-07 21:04||laimaretto||New Issue|
|2016-03-07 21:04||laimaretto||Status||new => assigned|
|2016-03-07 21:04||laimaretto||Assigned To||=> andriyanov|
|2016-03-09 08:07||andriyanov||Note Added: 0003135|
|2016-03-09 14:59||laimaretto||Note Added: 0003137|
|2016-03-09 14:59||laimaretto||Note Edited: 0003137||View Revisions|
|2016-03-09 15:00||laimaretto||File Added: rack_sort.png|
|2016-03-09 15:55||andriyanov||Note Added: 0003139|
|2016-05-14 17:30||laimaretto||Note Added: 0003183|