sort connected nodes by vlan

This commit is contained in:
Oliver Gorwits
2014-04-28 21:45:34 +01:00
parent 2739ab3ba8
commit 0413216f84

View File

@@ -130,7 +130,7 @@ get '/ajax/content/device/ports' => require_login sub {
# what kind of nodes are we interested in?
my $nodes_name = (param('n_archived') ? 'nodes' : 'active_nodes');
$nodes_name .= '_with_age' if param('c_nodes') and param('n_age');
$set = $set->search_rs({}, { order_by => ["${nodes_name}.mac", "ips.ip"] })
$set = $set->search_rs({}, { order_by => ["${nodes_name}.vlan", "${nodes_name}.mac", "ips.ip"] })
if param('c_nodes');
# retrieve active/all connected nodes, if asked for