def system_pkt_bandwidth(test_id, data, file_config, con_dic):
date_id = test_id
def system_pkt_bandwidth(test_id, data, file_config, con_dic):
date_id = test_id
- "tx_msg_size": float(test_x),
- "rx_msg_size": float(test_y),
- }
+ "tx_msg_size": float(test_x),
+ "rx_msg_size": float(test_y),
+ }
print("date_id is %d,package return at line 111\n" % date_id)
# return data_return
if data_return["throughput"] < data_max["throughput"]:
print("date_id is %d,package return at line 111\n" % date_id)
# return data_return
if data_return["throughput"] < data_max["throughput"]:
print("######find system bandwidth######")
print("rx_msg_size:%d tx_msg_size:%d\n" %
(pkt_reply["rx_msg_size"], pkt_reply["tx_msg_size"]))
print("######find system bandwidth######")
print("rx_msg_size:%d tx_msg_size:%d\n" %
(pkt_reply["rx_msg_size"], pkt_reply["tx_msg_size"]))
- date_tran = common_script.posca_tran_data(
- con_dic['ES_ip'], file_config["file_path"])
+ common_script.posca_tran_data(
+ con_dic['ES_ip'], file_config["file_path"])
- 'test_ip', 'tool', 'test_time', 'protocol',
- 'tx_pkt_sizes', 'rx_pkt_sizes', 'cpu_load',
- 'latency', 'ES_ip', 'dashboard'
+ 'test_ip', 'tool', 'test_time', 'protocol',
+ 'tx_pkt_sizes', 'rx_pkt_sizes', 'cpu_load',
+ 'latency', 'ES_ip', 'dashboard'
starttime = datetime.datetime.now()
config = ConfigParser.ConfigParser()
con_dic = common_script.posca_config_read(testcase_cfg, con_str, config)
common_script.posca_create_incluxdb(con_dic)
starttime = datetime.datetime.now()
config = ConfigParser.ConfigParser()
con_dic = common_script.posca_config_read(testcase_cfg, con_str, config)
common_script.posca_create_incluxdb(con_dic)
posca_run(con_dic)
endtime = datetime.datetime.now()
if con_dic["dashboard"] == "y":
cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_dashboard/\
system_bandwidth.py'
pargs = [INTERPRETER, cmd]
posca_run(con_dic)
endtime = datetime.datetime.now()
if con_dic["dashboard"] == "y":
cmd = '/home/opnfv/bottlenecks/testsuites/posca/testcase_dashboard/\
system_bandwidth.py'
pargs = [INTERPRETER, cmd]