mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
correct csv file naming in csv_to_influx.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -230,7 +230,8 @@ class StationProfile:
|
||||
# self.add_sta_data["key"] = passwd
|
||||
|
||||
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):
|
||||
types = {"wep": "wep_enable", "wpa": "wpa_enable", "wpa2": "wpa2_enable", "wpa3": "use-wpa3", "open": "[BLANK]"}
|
||||
|
||||
@@ -42,7 +42,7 @@ class CSVtoInflux():
|
||||
target_csv=None,
|
||||
sep='\t'):
|
||||
self.influxdb = influxdb
|
||||
self.target_csv = target_csv.replace('/home/lanforge/html-reports/', '')
|
||||
self.target_csv = target_csv
|
||||
self.influx_tag = _influx_tag
|
||||
self.sep = sep
|
||||
|
||||
|
||||
Reference in New Issue
Block a user