DataTables for port search results tab

Use device_port_vlan table to search for VLANs rather than the device_port table
This commit is contained in:
Eric A. Miller
2014-06-02 22:44:23 -04:00
parent a34094cc6c
commit 4f7a2097fc
3 changed files with 77 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
[% USE CSV -%]
[% CSV.dump([ 'Description' 'Port' 'Name' 'Vlan' ]) %]
[% WHILE (row = results.next) %]
[% FOREACH row IN results %]
[% mylist = [] %]
[% myport = "$row.ip [ $row.port ] (" _ row.device.dns _ ")" IF row.device.dns %]
[% FOREACH col IN [ row.name myport row.descr row.vlan ] %]