#1009 neighbour map depth and/or until end of lldp chains

* sidebar and style changes

* switch server code to new params and values

* working algo for cloud and neighbor depth

* store map positions for lldp cloud with depth

* color the root node uniquely

* restrict all devices, depth, cloud map to < 1000 devices
This commit is contained in:
Oliver Gorwits
2023-11-09 19:54:34 +00:00
committed by GitHub
parent b893d71e66
commit e52f789b45
9 changed files with 83 additions and 17 deletions

View File

@@ -86,6 +86,7 @@ get '/device' => require_login sub {
template 'device', {
netdisco_device => $first,
display_name => ($others ? $first->ip : ($first->dns || $first->ip)),
device_count => schema(vars->{'tenant'})->resultset('Device')->count(),
lgroup_list => [ schema(vars->{'tenant'})->resultset('Device')->get_distinct_col('location') ],
hgroup_list => setting('host_group_displaynames'),
device => params->{'tab'},