blob: df2bd011c65eee203ab2b586f67c1180b229f6c5 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001class driver :
2 def __init__(self):
3 self.default = ''
Jon Hall4ba53f02015-07-29 13:07:41 -07004
adminbae64d82013-08-01 10:50:15 -07005
6 def runTest(self,self) :
7 return TemplateTest.runTest(self)
8
9 def tearDown(self,self) :
10 return TemplateTest.tearDown(self)
11
12 def setUp(self,self) :
13 return TemplateTest.setUp(self)
14
15 def chkSetUpCondition(self,self,fv,sv_ret,ctl_ret,sw_ret) :
16 return TemplateTest.chkSetUpCondition(self,fv,sv_ret,ctl_ret,sw_ret)
17
18 def ofmsgSndCmpWithXid(self,parent,snd_list,exp_list,xid_ignore,hdr_only) :
19 return testutils.ofmsgSndCmpWithXid(parent,snd_list,exp_list,xid_ignore,hdr_only)
20
21 def genPacketOut(self,parent,xid,buffer_id,in_port,action_ports,pkt) :
22 return testutils.genPacketOut(parent,xid,buffer_id,in_port,action_ports,pkt)
23
24 def spawnApiClient(self,parent,user,pswd,rpcport) :
25 return testutils.spawnApiClient(parent,user,pswd,rpcport)
26
27 def genPhyPort(self,name,addr,port_no) :
28 return testutils.genPhyPort(name,addr,port_no)
29
30 def tearDownFlowVisor(self,parent) :
31 return testutils.tearDownFlowVisor(parent)
32
33 def _ruleLenChecker(self,parent,rule,exp_len) :
34 return testutils._ruleLenChecker(parent,rule,exp_len)
35
36 def genPacketIn(self,xid,buffer_id,in_port,pkt) :
37 return testutils.genPacketIn(xid,buffer_id,in_port,pkt)
38
39 def chkSliceStats(self,parent,controller_number,ofproto,exp_snd_count,exp_rcv_count) :
40 return testutils.chkSliceStats(parent,controller_number,ofproto,exp_snd_count,exp_rcv_count)
41
42 def spawnFlowVisor(self,parent,config_file,fv_cmd,fv_args) :
43 return testutils.spawnFlowVisor(parent,config_file,fv_cmd,fv_args)
44
45 def addController(self,parent,num) :
46 return testutils.addController(parent,num)
47
48 def genTrailer(self,controller_name,flowvisor_name) :
49 return testutils.genTrailer(controller_name,flowvisor_name)
50
51 def genVal32bit(self,) :
52 return testutils.genVal32bit()
53
54 def recvStats(self,parent,swId,typ) :
55 return testutils.recvStats(parent,swId,typ)
56
57 def simpleLldpPacket(self,dl_dst,dl_src,dl_type,lldp_chassis_id,lldp_port_id,lldp_ttl,trailer) :
58 return testutils.simpleLldpPacket(dl_dst,dl_src,dl_type,lldp_chassis_id,lldp_port_id,lldp_ttl,trailer)
59
60 def _tlvPack(self,tlv_type,tlv_value) :
61 return testutils._tlvPack(tlv_type,tlv_value)
62
63 def ofmsgSndCmp(self,parent,snd_list,exp_list,xid_ignore,hdr_only) :
64 return testutils.ofmsgSndCmp(parent,snd_list,exp_list,xid_ignore,hdr_only)
65
66 def _b2a(self,str) :
67 return testutils._b2a(str)
68
69 def simplePacket(self,pktlen,dl_dst,dl_src,dl_vlan,dl_vlan_pcp,dl_vlan_cfi,dl_type,nw_src,nw_dst,nw_tos,nw_proto,tp_src,tp_dst) :
70 return testutils.simplePacket(pktlen,dl_dst,dl_src,dl_vlan,dl_vlan_pcp,dl_vlan_cfi,dl_type,nw_src,nw_dst,nw_tos,nw_proto,tp_src,tp_dst)
71
72 def setRule(self,parent,sv,rule,num_try) :
73 return testutils.setRule(parent,sv,rule,num_try)
74
75 def genFloModFromPkt(self,parent,pkt,ing_port,action_list,wildcards,egr_port) :
76 return testutils.genFloModFromPkt(parent,pkt,ing_port,action_list,wildcards,egr_port)
77
78 def addSwitch(self,parent,num,port,switch_features,nPorts) :
79 return testutils.addSwitch(parent,num,port,switch_features,nPorts)
80
81 def test_param_get(self,config,key,default) :
82 return testutils.test_param_get(config,key,default)
83
84 def setUpTestEnv(self,parent,config_file,fv_cmd,num_of_switches,num_of_controllers,rules) :
85 return testutils.setUpTestEnv(parent,config_file,fv_cmd,num_of_switches,num_of_controllers,rules)
86
87 def _hdrParse(self,pkt) :
88 return testutils._hdrParse(pkt)
89
90 def _pktParse(self,pkt) :
91 return testutils._pktParse(pkt)
92
93 def _a2b(self,str) :
94 return testutils._a2b(str)
95
96 def genFeaturesReply(self,dpid,ports,xid) :
97 return testutils.genFeaturesReply(dpid,ports,xid)
98
99 def chkFlowdb(self,parent,controller_number,switch_number,exp_count,exp_rewrites) :
100 return testutils.chkFlowdb(parent,controller_number,switch_number,exp_count,exp_rewrites)
101
102 def genFlowModFlush(self,) :
103 return testutils.genFlowModFlush()