Files
netdisco/share/views/ajax/report/halfduplex_csv.tt
2017-04-14 23:08:55 +01:00

13 lines
332 B
Plaintext

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