Add disabling iperf3 bandwidth test if port == 0
Also set default DNS to 1.1.1.1
Change-Id: Ie2c8200cfd3bbeb3200566b5d685792b1d873f6b
diff --git a/VERSION b/VERSION
index e196726..fcbaa84 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.6.13
+0.6.14
diff --git a/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py b/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py
index 823e373..cabad1e 100755
--- a/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py
+++ b/edge-monitoring/agent_modem/edge_monitoring_agent_modem.py
@@ -25,7 +25,7 @@
config_file_contents = open(os.getenv('CONFIG_FILE', "./config.json")).read()
config_file_contents = config_file_contents.replace("user_plane_ping_test", "dns")
config_file_contents = config_file_contents.replace("speedtest_iperf", "iperf_server")
-config_file_contents = config_file_contents.replace("\"speedtest_ping_dns\": \"8.8.8.8\",", "")
+config_file_contents = config_file_contents.replace("\"speedtest_ping_dns\": \"1.1.1.1\",", "")
CONF = json.loads(
config_file_contents, object_hook=lambda d: namedtuple('X', d.keys())(*d.values())
)
@@ -229,7 +229,7 @@
- Retrieves downlink and uplink test results from json output
'''
result = 0.0
- if not ip:
+ if not ip or port == 0:
return result
maxRetries = 2
err = None