add vlan inventory report
This commit is contained in:
12
Netdisco/share/views/ajax/report/vlaninventory_csv.tt
Normal file
12
Netdisco/share/views/ajax/report/vlaninventory_csv.tt
Normal file
@@ -0,0 +1,12 @@
|
||||
[% USE CSV -%]
|
||||
[% CSV.dump([ 'VLAN ID' 'VLAN Name' 'Device Count' 'Port Count' ]) %]
|
||||
|
||||
[% WHILE (row = results.next) %]
|
||||
[% mylist = [] %]
|
||||
[% mylist.push(row.vlan) %]
|
||||
[% mylist.push(row.description) %]
|
||||
[% mylist.push(row.get_column('dcount')) %]
|
||||
[% mylist.push(row.get_column('pcount')) %]
|
||||
[% CSV.dump(mylist) %]
|
||||
|
||||
[% END %]
|
||||
Reference in New Issue
Block a user