mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
Updates : printing endpoint data on console
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
@@ -252,17 +252,27 @@ class L3CXProfile(LFCliBase):
|
||||
self.fail("FAIL: Not all stations increased traffic")
|
||||
self.exit_fail()
|
||||
try:
|
||||
self.refresh_cx()
|
||||
cx_data = self.json_get("/cx/all")
|
||||
cx_data.pop("handler")
|
||||
cx_data.pop("uri")
|
||||
|
||||
for i in self.created_cx.keys():
|
||||
print("cx name: ", i,
|
||||
" bps tx a :", cx_data[i]['bps tx a'], " bps rx a : ", cx_data[i]['bps rx a'],
|
||||
" bps tx b :", cx_data[i]['bps tx b'], " bps rx b : ", cx_data[i]['bps rx b'],
|
||||
endp_a_data = self.json_get("/endp/"+ cx_data[i]['endpoints'][0])
|
||||
endp_b_data = self.json_get("/endp/" + cx_data[i]['endpoints'][1])
|
||||
print("cx name:", i, "\n",
|
||||
" bps tx a :", endp_a_data['endpoint']['tx rate'], " --> ",
|
||||
" bps rx b : ", endp_b_data['endpoint']['rx rate'],
|
||||
" rx drop % b : ", cx_data[i]['rx drop % b'], "\n"
|
||||
" tx bytes a : ", endp_a_data['endpoint']['tx bytes'], " --> "
|
||||
" rx bytes b", endp_b_data['endpoint']['rx bytes'], "\n"
|
||||
" tx bytes b : ", endp_b_data['endpoint']['tx bytes'], " --> "
|
||||
" rx bytes a", endp_a_data['endpoint']['rx bytes'], "\n"
|
||||
" bps tx b :", endp_b_data['endpoint']['tx rate'], " --> "
|
||||
" bps rx a : ", endp_a_data['endpoint']['rx rate'],
|
||||
" rx drop % a :", cx_data[i]['rx drop % a'], "\n"
|
||||
" pkt rx a :", cx_data[i]['pkt rx a'], " pkt rx b : ", cx_data[i]['pkt rx b'],
|
||||
" rx drop % a :", cx_data[i]['rx drop % a'], " rx drop % b : ", cx_data[i]['rx drop % b'])
|
||||
print("\n")
|
||||
)
|
||||
print("\n\n\n")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
time.sleep(monitor_interval_ms)
|
||||
|
||||
@@ -291,7 +291,7 @@ python3 ./test_ipv4_variable_time.py
|
||||
parser.add_argument('--compared_report', help='report path and file which is wished to be compared with new report',
|
||||
default=None)
|
||||
parser.add_argument('--monitor_interval',
|
||||
help='how frequently do you want your monitor function to take measurements; 250ms, 35s, 2h',
|
||||
help='how frequently do you want your monitor function to take measurements; \, 35s, 2h',
|
||||
default='10s')
|
||||
parser.add_argument('--influx_token', help='Username for your Influx database')
|
||||
parser.add_argument('--influx_bucket', help='Password for your Influx database')
|
||||
|
||||
Reference in New Issue
Block a user