Datatables for IP Phones discovered through LLDP/CDP report

This commit is contained in:
Eric A. Miller
2014-05-29 23:00:28 -04:00
parent 14e401813b
commit 669333d490
3 changed files with 63 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
[% USE CSV -%]
[% CSV.dump([ 'Device' 'Port' 'Remote ID' 'Remote IP' 'Remote Port' 'Remote Type']) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% device = row.dns || row.name || row.ip %]
[% FOREACH col IN [ device row.port row.remote_id row.remote_ip row.remote_port row.remote_type ] %]