mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
Script for running a ipv4 connection test over a variable period of time
This commit is contained in:
30
py-scripts/test_ipv4_variable_time.py
Normal file
30
py-scripts/test_ipv4_variable_time.py
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
if sys.version_info[0] != 3:
|
||||
print("This script requires Python 3")
|
||||
exit(1)
|
||||
|
||||
if 'py-json' not in sys.path:
|
||||
sys.path.append('../py-json')
|
||||
|
||||
import argparse
|
||||
from LANforge.lfcli_base import LFCliBase
|
||||
from LANforge.LFUtils import *
|
||||
import realm
|
||||
import time
|
||||
|
||||
class IPV4VariableTime(LFCliBase):
|
||||
def __init__(self):
|
||||
self.local_realm = realm.Realm()
|
||||
def run_test(self): pass
|
||||
def cleanup(self): pass
|
||||
def run(self):
|
||||
print(self.local_realm.parse_time("10m"))
|
||||
|
||||
def main():
|
||||
ip_var_test = IPV4VariableTime()
|
||||
ip_var_test.run()
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user