From 8e42bf5702d7d50f9283e67536552839a676c69a Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Mon, 10 May 2021 18:07:37 -0600 Subject: [PATCH] test_l3_longevity.py : bug fix only read ap if set to true Signed-off-by: Chuck SmileyRekiere --- py-scripts/test_l3_longevity.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/py-scripts/test_l3_longevity.py b/py-scripts/test_l3_longevity.py index d0e28450..e56c1c50 100755 --- a/py-scripts/test_l3_longevity.py +++ b/py-scripts/test_l3_longevity.py @@ -518,8 +518,8 @@ Station Address PHY Mbps Data Mbps Air Use Data Use Retries bw mc # Query AP for its stats. Result for /ax bcm APs looks something like this: # ''' - if self.ap_test_mode: - if self.ap_read: + if self.ap_read: + if self.ap_test_mode: ap_stats = []; ap_stats.append("root@Docsis-Gateway:~# wl -i wl1 bs_data") ap_stats.append("Station Address PHY Mbps Data Mbps Air Use Data Use Retries bw mcs Nss ofdma mu-mimo") @@ -967,7 +967,8 @@ python3 .\\test_l3_longevity.py --test_duration 4m --endp_type \"lf_tcp lf_udp m print("radios {}".format(radios)) for radio_ in radios: radio_keys = ['radio','stations','ssid','ssid_pw','security'] - radio_info_dict = dict(map(lambda x: x.split('=='), str(radio_).replace('[','').replace(']','').replace("'","").replace(","," ").split())) + print("radio_dict before format {}".format(radio_)) + radio_info_dict = dict(map(lambda x: x.split('=='), str(radio_).replace('"','').replace('[','').replace(']','').replace("'","").replace(","," ").split())) print("radio_dict {}".format(radio_info_dict)) for key in radio_keys: