mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
inheritance of L3CXProf v1 is back to LFClibase
Signed-off-by: Dipti <dipti.dhond@candelatech.com>
This commit is contained in:
@@ -590,31 +590,24 @@ class LFCliBase:
|
||||
}
|
||||
self.json_post("/cli-json/add_event", data, debug_=debug_)
|
||||
|
||||
# def read_file(self,
|
||||
# filename):
|
||||
# #Convert file contents to a list
|
||||
# filename = open(filename, 'r')
|
||||
# return [line.split(',') for line in filename.readlines()]
|
||||
def read_file(self, filename):
|
||||
filename = open(filename, 'r')
|
||||
return [line.split(',') for line in filename.readlines()]
|
||||
|
||||
# def random_chars(self,
|
||||
# size,
|
||||
# chars=None):
|
||||
# #Create random characters made of letters
|
||||
# if chars is None:
|
||||
# chars = string.ascii_letters
|
||||
# return ''.join(random.choice(chars) for x in range(size))
|
||||
#Function creates random characters made of letters
|
||||
def random_chars(self, size, chars=None):
|
||||
if chars is None:
|
||||
chars = string.ascii_letters
|
||||
return ''.join(random.choice(chars) for x in range(size))
|
||||
|
||||
# def get_milliseconds(self,
|
||||
# timestamp):
|
||||
# return (timestamp - datetime.datetime(1970,1,1)).total_seconds()*1000
|
||||
# def get_seconds(self,
|
||||
# timestamp):
|
||||
# return (timestamp - datetime.datetime(1970,1,1)).total_seconds()
|
||||
def get_milliseconds(self, timestamp):
|
||||
return (timestamp - datetime.datetime(1970,1,1)).total_seconds()*1000
|
||||
|
||||
def get_seconds(self, timestamp):
|
||||
return (timestamp - datetime.datetime(1970,1,1)).total_seconds()
|
||||
|
||||
# def replace_special_char(self,
|
||||
# str):
|
||||
# return str.replace('+', ' ').replace('_', ' ').strip(' ')
|
||||
def replace_special_char(self, str):
|
||||
return str.replace('+', ' ').replace('_', ' ').strip(' ')
|
||||
|
||||
Help_Mode = """Station WiFi modes: use the number value below:
|
||||
auto : 0,
|
||||
|
||||
Reference in New Issue
Block a user