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:
@@ -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 ] %]
|
||||
|
||||
Reference in New Issue
Block a user