Add Nodes with multiple IP addresses report

This commit is contained in:
Eric A. Miller
2013-11-04 23:01:08 -05:00
parent e810156987
commit 62b55f71ca
6 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
[% USE CSV -%]
[% CSV.dump([ 'MAC' 'Vendor' 'Switch' 'Port' 'IPs' ]) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% mylist.push(row.mac.upper) %]
[% mylist.push(row.vendor) %]
[% mylist.push(row.dns || row.name || row.switch) %]
[% mylist.push(row.port) %]
[% mylist.push(row.ip_count) %]
[% CSV.dump(mylist) %]
[% END %]