码迷,mamicode.com
首页 > 其他好文 > 详细

dts--framework(三)

时间:2018-10-17 11:11:53      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:exe   iss   mac   exec   oss   ble   save   ddr   cache   

tester.py

class Tester(Crb)
00. __init__(self, crb, serializer)
01.init_ext_gen(self)
02.set_re_run(self, re_run_time)
03.get_ip_address(self)
04.get_username(self)
05.get_password(self)
06.has_external_traffic_generator(self)
07.get_external_traffic_generator(self)
08.it_uses_external_generator(self)
09.tester_prerequisites(self)
10.get_local_port(self, remotePort)
11.get_local_port_type(self, remotePort)
12.get_local_port_bydut(self, remotePort, dutIp)
13.get_local_index(self, pci)
14.get_pci(self, localPort)
15.get_interface(self, localPort)
16.get_mac(self, localPort)
17.get_port_status(self, port)
18.restore_interfaces(self)
19.set_promisc(self)
20.load_serializer_ports(self)
21.save_serializer_ports(self)
22.scan_ports(self)
23.scan_ports_cached(self)
24.scan_ports_uncached(self)
25.send_ping(self, localPort, ipv4, mac)
26.send_ping6(self, localPort, ipv6, mac)
27.get_port_numa(self, port)
28.check_port_list(self, portList, ftype=normal)
29.scapy_append(self, cmd)
30.scapy_execute(self, timeout=60)
31.scapy_background(self)
32.scapy_foreground(self)
33.scapy_get_result(self)
34.traffic_generator_throughput(self, portList, rate_percent=100, delay=5)
35.verify_packet_order(self, portList, delay)
36.run_rfc2544(self, portlist, delay=120, permit_loss_rate=0)
37.traffic_generator_loss(self, portList, ratePercent, delay=60)
38.traffic_generator_latency(self, portList, ratePercent=100, delay=5)
39.parallel_transmit_ptks(self, send_f=None, intf=‘‘, pkts=[], interval=0.01)
40.check_random_pkts(self, portList, pktnum=2000, interval=0.01, allow_miss=True, seq_check=False, params=None)
41.extend_external_packet_generator(self, clazz, instance)
42.sendpkt_bg(self, localPort, dst_mac)
43.stop_sendpkt_bg(self)
44.kill_all(self, killall=False)
45.close(self)
46.crb_exit(self)

etgen.py

class SoftwarePacketGenerator()
__init__(self, tester)
packet_generator(self, portList, rate_percent)
throughput(self, portList, rate_percent=100)
loss(self, portList, ratePercent)

class IxiaPacketGenerator(SSHConnection)

config.py

class UserConf()
__init__(self, config)
get_sections(self)
load_section(self, section)
load_config(self, item)
load_param(self, conf)

class GlobalConf(UserConf)
__init__(self)
load_global_config(self, section_name=global)

class SuiteConf(UserConf)
__init__(self, suite_name="")
load_case_config(self, case_name="")

class VirtConf(UserConf)
__init__(self, virt_conf=VIRTCONF)
load_virt_config(self, name)
get_virt_config(self)
load_virt_param(self, config)

class PortConf(UserConf)
__init__(self, port_conf=PORTCONF)
load_ports_config(self, crbIP)
get_ports_config(self)
check_port_available(self, pci_addr)

class CrbsConf(UserConf)
__init__(self, crbs_conf=CRBCONF)
load_crbs_config(self)

class IxiaConf(UserConf)
__init__(self, ixia_conf=IXIACONF)
load_ixia_config(self)

dts--framework(三)

标签:exe   iss   mac   exec   oss   ble   save   ddr   cache   

原文地址:https://www.cnblogs.com/eilinge/p/9802197.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!