add csv download to duplex mismatch, half duplex, and port utilization reports
This commit is contained in:
		
							
								
								
									
										12
									
								
								Netdisco/share/views/ajax/report/halfduplex_csv.tt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								Netdisco/share/views/ajax/report/halfduplex_csv.tt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| [% USE CSV -%] | ||||
| [% CSV.dump([ 'Device' 'Port' 'Description' 'Duplex' ]) %] | ||||
|  | ||||
| [% WHILE (row = results.next) %] | ||||
|   [% mylist = [] %] | ||||
|   [% device = row.device.dns || row.device.ip %] | ||||
|   [% FOREACH col IN [ device row.port row.name row.duplex.ucfirst ] %] | ||||
|     [% mylist.push(col) %] | ||||
|   [% END %] | ||||
|   [% CSV.dump(mylist) %] | ||||
|  | ||||
| [% END %] | ||||
		Reference in New Issue
	
	Block a user