DataTables for port utilization report

This commit is contained in:
Eric A. Miller
2014-05-24 09:01:49 -04:00
parent 1919924441
commit d54e6ea6e7
3 changed files with 45 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
[% USE CSV -%]
[% CSV.dump([ 'Device' 'Total Ports' 'In Use' 'Shutdown' 'Free' ]) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% device = row.dns || row.ip %]
[% FOREACH col IN [ device row.port_count row.ports_in_use row.ports_shutdown row.ports_free ] %]