DataTables for VLAN inventory report

This commit is contained in:
Eric A. Miller
2014-05-28 23:43:13 -04:00
parent 998ca5a92a
commit 0e2c006efb
3 changed files with 48 additions and 26 deletions

View File

@@ -1,12 +1,12 @@
[% USE CSV -%]
[% CSV.dump([ 'VLAN ID' 'VLAN Name' 'Device Count' 'Port Count' ]) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% mylist.push(row.vlan) %]
[% mylist.push(row.description) %]
[% mylist.push(row.get_column('dcount')) %]
[% mylist.push(row.get_column('pcount')) %]
[% mylist.push(row.dcount) %]
[% mylist.push(row.pcount) %]
[% CSV.dump(mylist) %]
[% END %]