From 5a943fa141d5c55e2a4baa55d1eabb6c5197b0d4 Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Thu, 25 Jun 2020 10:35:34 -0700 Subject: [PATCH] Script for running a ipv4 connection test over a variable period of time --- py-scripts/test_ipv4_variable_time.py | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 py-scripts/test_ipv4_variable_time.py diff --git a/py-scripts/test_ipv4_variable_time.py b/py-scripts/test_ipv4_variable_time.py new file mode 100644 index 00000000..9adb90fa --- /dev/null +++ b/py-scripts/test_ipv4_variable_time.py @@ -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() \ No newline at end of file