From bb1da78e2875c8dbcd48603ccb5d0616bd78512e Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 16 Jun 2021 07:19:21 -0600 Subject: [PATCH] lf_dataplane_test.py lf_dataplane_config.json : support for pulling report in the json file Signed-off-by: Chuck SmileyRekiere --- py-scripts/lf_dataplane_config.json | 1 + py-scripts/lf_dataplane_test.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/py-scripts/lf_dataplane_config.json b/py-scripts/lf_dataplane_config.json index 1ed790a4..088a829d 100755 --- a/py-scripts/lf_dataplane_config.json +++ b/py-scripts/lf_dataplane_config.json @@ -11,6 +11,7 @@ "station":"1.1.eth2", "download_speed":"85%", "upload_speed":"0", + "pull_report": true, "raw_line": ["pkts: Custom;60;MTU", "cust_pkt_sz: 88 1200", "directions: DUT Transmit", "traffic_types: UDP", "bandw_options: 20", "spatial_streams: 1"] } diff --git a/py-scripts/lf_dataplane_test.py b/py-scripts/lf_dataplane_test.py index c22feacc..18420bfc 100755 --- a/py-scripts/lf_dataplane_test.py +++ b/py-scripts/lf_dataplane_test.py @@ -336,6 +336,8 @@ def main(): args.download_speed = json_data["download_speed"] if "upload_speed" in json_data: args.upload_speed = json_data["upload_speed"] + if "pull_report" in json_data: + args.pull_report = json_data["pull_report"] if "raw_line" in json_data: # the json_data is a list , need to make into a list of lists, to match command line raw_line paramaters # https://www.tutorialspoint.com/convert-list-into-list-of-lists-in-python