blob: 2501e121f82f2a1f03cf51da4232e84e7cf924f8 [file] [log] [blame]
You Wang53dba1e2018-02-02 17:45:44 -08001class SRDhcprelay:
2 def __init__( self ):
3 self.default = ''
4
5 def CASE1( self, main ):
6 """
7 DHCP v4 tests
8 Client: 4 clients attached to switch directly
9 Server: 1 server attached to switch directly
10 Sets up 3 ONOS instance
11 """
12 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
13 SRDhcprelayTest.runTest( main,
14 testIndex=1,
15 onosNodes=3,
16 description="DHCP v4 tests with 4 clients attached to switch directly and 1 server attached to switch directly" )
17
18 def CASE2( self, main ):
19 """
20 DHCP v4 tests
21 Client: 4 clients attached to switch directly
22 Server: 1 server attached to switch indirectly (via gateway)
23 Sets up 3 ONOS instance
24 """
25 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
26 SRDhcprelayTest.runTest( main,
27 testIndex=2,
28 onosNodes=3,
29 description="DHCP v4 tests with 4 clients attached to switch directly and 1 server attached to switch indirectly (via gateway)",
30 remoteServer=True )
31
32 def CASE3( self, main ):
33 """
34 DHCP v4 tests
35 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
36 Server: 1 server attached to switch directly
37 Sets up 3 ONOS instance
38 """
39 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
40 SRDhcprelayTest.runTest( main,
41 testIndex=3,
42 onosNodes=3,
43 description="DHCP v4 tests with 2 clients attached to switch directly and 2 clients via DHCP relay and and 1 server attached to switch directly",
44 dhcpRelay=True )
45
46 def CASE4( self, main ):
47 """
48 DHCP v4 tests
49 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
50 Server: 1 server attached to switch indirectly (via gateway)
51 Sets up 3 ONOS instance
52 """
53 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
54 SRDhcprelayTest.runTest( main,
55 testIndex=4,
56 onosNodes=3,
57 description="DHCP v4 tests with 4 clients attached to switch directly and 2 clients via DHCP relay and and 1 server attached to switch indirectly (via gateway)",
58 dhcpRelay=True,
59 remoteServer=True )
60
61 def CASE5( self, main ):
62 """
63 DHCP v4 tests
64 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
65 Server: 1 server attached to switch directly for directly connected hosts
66 another server attached to switch directly for indirectly connected hosts
67 Sets up 3 ONOS instance
68 """
69 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
70 SRDhcprelayTest.runTest( main,
71 testIndex=5,
72 onosNodes=3,
73 description="DHCP v4 tests with 2 clients attached to switch directly, 2 clients via DHCP relay and, 1 server attached to switch directly for direcly connected hosts and another server attached to switch directly for indirectly connected hosts",
74 dhcpRelay=True,
75 multipleServer=True )
76
77 def CASE6( self, main ):
78 """
79 DHCP v4 tests
80 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
81 Server: 1 server attached to switch directly for directly connected hosts
82 another server attached to switch directly for indirectly connected hosts
83 "DhcpRelayAgentIp" addresses are configured for indirect hosts
84 Sets up 3 ONOS instance
85 """
86 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
87 SRDhcprelayTest.runTest( main,
88 testIndex=6,
89 onosNodes=3,
90 description="DHCP v4 tests with 2 clients attached to switch directly, 2 clients via DHCP relay and, 1 server attached to switch directly for direcly connected hosts and another server attached to switch directly for indirectly connected hosts, 'DhcpRelayAgentIp' addresses are configured for indirect hosts",
91 dhcpRelay=True,
92 multipleServer=True )
93
94 def CASE11( self, main ):
95 """
96 DHCP v6 tests
97 Client: 4 clients attached to switch directly
98 Server: 1 server attached to switch directly
99 Sets up 3 ONOS instance
100 """
101 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
102 SRDhcprelayTest.runTest( main,
103 testIndex=11,
104 onosNodes=3,
105 description="DHCP v6 tests with 4 clients attached to switch directly and 1 server attached to switch directly",
106 ipv6=True )
107
108 def CASE12( self, main ):
109 """
110 DHCP v6 tests
111 Client: 4 clients attached to switch directly
112 Server: 1 server attached to switch indirectly (via gateway)
113 Sets up 3 ONOS instance
114 """
115 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
116 SRDhcprelayTest.runTest( main,
117 testIndex=12,
118 onosNodes=3,
119 description="DHCP v6 tests with 4 clients attached to switch directly and 1 server attached to switch indirectly (via gateway)",
120 remoteServer=True,
121 ipv6=True )
122
123 def CASE13( self, main ):
124 """
125 DHCP v6 tests
126 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
127 Server: 1 server attached to switch directly
128 Sets up 3 ONOS instance
129 """
130 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
131 SRDhcprelayTest.runTest( main,
132 testIndex=13,
133 onosNodes=3,
134 description="DHCP v6 tests with 2 clients attached to switch directly and 2 clients via DHCP relay and and 1 server attached to switch directly",
135 dhcpRelay=True,
136 ipv6=True )
137
138 def CASE14( self, main ):
139 """
140 DHCP v6 tests
141 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
142 Server: 1 server attached to switch indirectly (via gateway)
143 Sets up 3 ONOS instance
144 """
145 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
146 SRDhcprelayTest.runTest( main,
147 testIndex=14,
148 onosNodes=3,
149 description="DHCP v6 tests with 4 clients attached to switch directly and 2 clients via DHCP relay and and 1 server attached to switch indirectly (via gateway)",
150 dhcpRelay=True,
151 remoteServer=True,
152 ipv6=True )
153
154 def CASE15( self, main ):
155 """
156 DHCP v6 tests
157 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
158 Server: 1 server attached to switch directly for directly connected hosts
159 another server attached to switch directly for indirectly connected hosts
160 Sets up 3 ONOS instance
161 """
162 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
163 SRDhcprelayTest.runTest( main,
164 testIndex=15,
165 onosNodes=3,
166 description="DHCP v6 tests with 2 clients attached to switch directly, 2 clients via DHCP relay and, 1 server attached to switch directly for direcly connected hosts and another server attached to switch directly for indirectly connected hosts",
167 dhcpRelay=True,
168 multipleServer=True,
169 ipv6=True )
170
171 def CASE16( self, main ):
172 """
173 DHCP v6 tests
174 Client: 2 clients attached to switch directly, 2 clients via DHCP relay
175 Server: 1 server attached to switch directly for directly connected hosts
176 another server attached to switch directly for indirectly connected hosts
177 "DhcpRelayAgentIp" addresses are configured for indirect hosts
178 Sets up 3 ONOS instance
179 """
180 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
181 SRDhcprelayTest.runTest( main,
182 testIndex=16,
183 onosNodes=3,
184 description="DHCP v6 tests with 2 clients attached to switch directly, 2 clients via DHCP relay and, 1 server attached to switch directly for direcly connected hosts and another server attached to switch directly for indirectly connected hosts, 'DhcpRelayAgentIp' addresses are configured for indirect hosts",
185 dhcpRelay=True,
186 multipleServer=True,
187 ipv6=True )
188
189 def CASE21( self, main ):
190 """
191 DHCP v4 tests with tagged hosts
192 Client: 4 clients attached to switch directly
193 Server: 1 server attached to switch directly
194 Sets up 3 ONOS instance
195 """
196 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
197 SRDhcprelayTest.runTest( main,
198 testIndex=21,
199 onosNodes=3,
200 description="DHCP v4 tests with tagged hosts: 4 clients attached to switch directly and 1 server attached to switch directly",
201 vlan=[ 20, 20, 30, 30 ] )
202
203 def CASE22( self, main ):
204 """
205 DHCP v4 tests with tagged hosts
206 Client: 4 clients attached to switch directly
207 Server: 1 server attached to switch indirectly (via gateway)
208 Sets up 3 ONOS instance
209 """
210 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
211 SRDhcprelayTest.runTest( main,
212 testIndex=22,
213 onosNodes=3,
steven308017da3c6e2019-01-22 17:03:34 +0800214 description="DHCP v4 tests with tagged hosts: 4 clients attached to switch directly and 1 server attached to switch indirectly (via gateway)",
You Wang53dba1e2018-02-02 17:45:44 -0800215 remoteServer=True,
216 vlan=[ 20, 20, 30, 30 ] )
217
218 def CASE31( self, main ):
219 """
220 DHCP v6 tests with tagged hosts
221 Client: 4 clients attached to switch directly
222 Server: 1 server attached to switch directly
223 Sets up 3 ONOS instance
224 """
225 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
226 SRDhcprelayTest.runTest( main,
227 testIndex=31,
228 onosNodes=3,
229 description="DHCP v6 tests with tagged hosts: 4 clients attached to switch directly and 1 server attached to switch directly",
230 ipv6=True,
231 vlan=[ 40, 40, 50, 50 ] )
232
233 def CASE41( self, main ):
234 """
235 DHCP v4 tests with dual-homed hosts
236 Client: 4 clients attached to switch directly
237 Server: 1 server attached to switch directly
238 Sets up 3 ONOS instance
239 """
240 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
241 SRDhcprelayTest.runTest( main,
242 testIndex=41,
243 onosNodes=3,
244 description="DHCP v4 tests with dual-homed hosts: 4 clients attached to switch directly and 1 server attached to switch directly",
245 dualHomed=True )
246
247 def CASE51( self, main ):
248 """
249 DHCP v6 tests with dual-homed hosts
250 Client: 4 clients attached to switch directly
251 Server: 1 server attached to switch directly
252 Sets up 3 ONOS instance
253 """
254 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
255 SRDhcprelayTest.runTest( main,
256 testIndex=51,
257 onosNodes=3,
258 description="DHCP v6 tests with dual-homed hosts: 4 clients attached to switch directly and 1 server attached to switch directly",
259 ipv6=True,
260 dualHomed=True )
261
262 def CASE61( self, main ):
263 """
264 DHCP v4 tests with dual-homed tagged hosts
265 Client: 4 clients attached to switch directly
266 Server: 1 server attached to switch directly
267 Sets up 3 ONOS instance
268 """
269 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
270 SRDhcprelayTest.runTest( main,
271 testIndex=61,
272 onosNodes=3,
273 description="DHCP v4 tests with dual-homed tagged hosts: 4 clients attached to switch directly and 1 server attached to switch directly",
274 vlan=[ 20, 20, 30, 30 ],
275 dualHomed=True )
276
277 def CASE71( self, main ):
278 """
279 DHCP v6 tests with dual-homed tagged hosts
280 Client: 4 clients attached to switch directly
281 Server: 1 server attached to switch directly
282 Sets up 3 ONOS instance
283 """
284 from tests.USECASE.SegmentRouting.SRDhcprelay.dependencies.SRDhcprelayTest import SRDhcprelayTest
285 SRDhcprelayTest.runTest( main,
286 testIndex=71,
287 onosNodes=3,
288 description="DHCP v6 tests with dual-homed tagged hosts: 4 clients attached to switch directly and 1 server attached to switch directly",
289 ipv6=True,
290 vlan=[ 40, 40, 50, 50 ],
291 dualHomed=True )