DataTables for ports in half duplex mode report

This commit is contained in:
Eric A. Miller
2014-05-28 23:40:07 -04:00
parent 4df2b5d216
commit 0a5686b454
3 changed files with 64 additions and 34 deletions

View File

@@ -1,9 +1,9 @@
[% USE CSV -%]
[% CSV.dump([ 'Device' 'Port' 'Description' 'Duplex' ]) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% device = row.device.dns || row.device.ip %]
[% device = rrow.device.dns || row.device.name || row.ip %]
[% FOREACH col IN [ device row.port row.name row.duplex.ucfirst ] %]
[% mylist.push(col) %]
[% END %]