* first steps for vlan tab * export sort_vlans, use strict/warnings * update manifest, get worker closer to functioning * remove ie 9 script & extra ./th * make it work * cleanup * readd internet explorer code * start for csv output * move things to debug logging instead of info * use message which was discussed * fix for address table sorting * link os * final touches thx to ollyg * fetch origin/master * VLAN is the preferred style for user interface usage * does a missing libexpat-dev make travis builds complain? * Revert "does a missing libexpat-dev make travis builds complain?" This reverts commit 0cebc66f42708ff0f946213aab4bcbcc1b1b1379.
		
			
				
	
	
		
			13 lines
		
	
	
		
			346 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			346 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
[% USE CSV -%]
 | 
						|
[% CSV.dump([ 'VLAN' 'Device' 'Description' 'Model' 'OS' 'Vendor' ]) %]
 | 
						|
 | 
						|
[% FOREACH row IN results %]
 | 
						|
  [% mylist = [] %]
 | 
						|
  [% device = row.dns || row.ip %]
 | 
						|
  [% FOREACH col IN [ row.vlans.vlan device row.vlans.description row.model row.os row.vendor ] %]
 | 
						|
    [% mylist.push(col) %]
 | 
						|
  [% END %]
 | 
						|
  [% CSV.dump(mylist) %]
 | 
						|
 | 
						|
[% END %]
 |