add vlan inventory report

This commit is contained in:
Eric A. Miller
2013-09-24 23:51:33 -04:00
parent 26de9cc6d9
commit 2856271cd2
5 changed files with 92 additions and 0 deletions

View 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 %]