mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	correct csv file naming in csv_to_influx.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		@@ -231,6 +231,7 @@ class StationProfile:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def station_mode_to_number(self,mode):
 | 
					    def station_mode_to_number(self,mode):
 | 
				
			||||||
        modes = ['a', 'b', 'g', 'abg', 'an', 'abgn', 'bgn', 'bg', 'abgn-AC', 'bgn-AC', 'an-AC']
 | 
					        modes = ['a', 'b', 'g', 'abg', 'an', 'abgn', 'bgn', 'bg', 'abgn-AC', 'bgn-AC', 'an-AC']
 | 
				
			||||||
 | 
					        return modes.index(mode) + 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def add_security_extra(self, security):
 | 
					    def add_security_extra(self, security):
 | 
				
			||||||
        types = {"wep": "wep_enable", "wpa": "wpa_enable", "wpa2": "wpa2_enable", "wpa3": "use-wpa3", "open": "[BLANK]"}
 | 
					        types = {"wep": "wep_enable", "wpa": "wpa_enable", "wpa2": "wpa2_enable", "wpa3": "use-wpa3", "open": "[BLANK]"}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,7 +42,7 @@ class CSVtoInflux():
 | 
				
			|||||||
                 target_csv=None,
 | 
					                 target_csv=None,
 | 
				
			||||||
                 sep='\t'):
 | 
					                 sep='\t'):
 | 
				
			||||||
        self.influxdb = influxdb
 | 
					        self.influxdb = influxdb
 | 
				
			||||||
        self.target_csv = target_csv.replace('/home/lanforge/html-reports/', '')
 | 
					        self.target_csv = target_csv
 | 
				
			||||||
        self.influx_tag = _influx_tag
 | 
					        self.influx_tag = _influx_tag
 | 
				
			||||||
        self.sep = sep
 | 
					        self.sep = sep
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user