From b91b7f9e6eeac0f4f31142b3f7af518c72dde045 Mon Sep 17 00:00:00 2001 From: Alex Terrell Date: Wed, 20 Mar 2024 12:32:52 -0600 Subject: [PATCH] Update Mobile_Site_Survey.py --- Mobile_Site_Survey/Mobile_Site_Survey.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Mobile_Site_Survey/Mobile_Site_Survey.py b/Mobile_Site_Survey/Mobile_Site_Survey.py index 0b72671..23512cb 100644 --- a/Mobile_Site_Survey/Mobile_Site_Survey.py +++ b/Mobile_Site_Survey/Mobile_Site_Survey.py @@ -259,8 +259,12 @@ def loop(self): title = f' ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n' \ f' ┣┅➤ {pretty_timestamp} ⌖{pretty_lat}, {pretty_lon} \n' self.results = title + self.results + + # Reset routing policies and tables + # Should this be omitted to avoid constant route recreation? cp.put('config/routing/policies', routing_policies) cp.put('config/routing/tables', routing_tables) + cp.log('---> Survey Complete <---') self.timestamp = None self.manual = False @@ -429,7 +433,6 @@ def dec(deg, min, sec): dec = deg + (min / 60) + (sec / 3600) return round(dec, 6) - def debug_log(msg): """Write log when in debug mode""" if dispatcher.config["debug"]: @@ -482,7 +485,6 @@ def ping(host, iface): except Exception as e: cp.log(f'Exception in PING: {e}') - def run_tests(sim): """Main testing function - multithreaded by Dispatcher""" download, upload, latency = 0.0, 0.0, 0.0 @@ -587,7 +589,6 @@ def run_tests(sim): cp.log(f'Exception calculating packet loss: {e}') tx, rx, packet_loss_percent = 0, 0, 0 - if dispatcher.config["speedtests"]: # Ookla Speedtest try: @@ -821,8 +822,6 @@ def run_tests(sim): msg = f'Unable to write to {filename}. {e}' log_all(msg, logs) - - def manual_test(path, value, *args): if not value: debug_log('Blank Description - Executing Manual Test')