@@ -193,7 +193,7 @@ def verify_sriov_single_vf_connection_max_cpu(
193193
194194 @TestCaseMetadata (
195195 description = """
196- This case needs 2 nodes and 8 nics. And it verifies module of sriov network
196+ This case needs 2 nodes and max nics. And it verifies module of sriov network
197197 interface is loaded and each synthetic nic is paired with one VF, and check
198198 rx statistics of source and tx statistics of dest increase after send 200 Mb
199199 file from source to dest.
@@ -211,8 +211,8 @@ def verify_sriov_single_vf_connection_max_cpu(
211211 requirement = simple_requirement (
212212 min_count = 2 ,
213213 network_interface = schema .NetworkInterfaceOptionSettings (
214- nic_count = 8 ,
215214 data_path = schema .NetworkDataPath .Sriov ,
215+ nic_count = search_space .IntRange (min = 2 , choose_max_value = True ),
216216 ),
217217 ),
218218 )
@@ -223,7 +223,7 @@ def verify_sriov_max_vf_connection(self, environment: Environment) -> None:
223223
224224 @TestCaseMetadata (
225225 description = """
226- This case needs 2 nodes, 8 nics and 64 Vcpus. And it verifies module of sriov
226+ This case needs 2 nodes, max nics and 64 Vcpus. And it verifies module of sriov
227227 network interface is loaded and each synthetic nic is paired with one VF, and
228228 check rx statistics of source and tx statistics of dest increase after send 200
229229 Mb file from source to dest.
@@ -242,8 +242,8 @@ def verify_sriov_max_vf_connection(self, environment: Environment) -> None:
242242 min_count = 2 ,
243243 min_core_count = 64 ,
244244 network_interface = schema .NetworkInterfaceOptionSettings (
245- nic_count = 8 ,
246245 data_path = schema .NetworkDataPath .Sriov ,
246+ nic_count = search_space .IntRange (min = 2 , choose_max_value = True ),
247247 ),
248248 ),
249249 )
@@ -332,7 +332,6 @@ def verify_sriov_disable_enable_on_guest(self, environment: Environment) -> None
332332 requirement = simple_requirement (
333333 network_interface = schema .NetworkInterfaceOptionSettings (
334334 data_path = schema .NetworkDataPath .Sriov ,
335- max_nic_count = 8 ,
336335 ),
337336 ),
338337 )
@@ -369,16 +368,18 @@ def verify_sriov_add_max_nics(
369368
370369 @TestCaseMetadata (
371370 description = """
372- This case verify VM works well when provisioning with max (8) sriov nics.
371+ This case verify VM works well when provisioning with max sriov nics.
373372
374373 Steps,
375374 1. Provision VM with max network interfaces with enabling accelerated network.
376375 2. Do the basic sriov testing.
377376 """ ,
378377 priority = 2 ,
379378 requirement = simple_requirement (
380- min_nic_count = 8 ,
381- network_interface = features .Sriov (),
379+ network_interface = schema .NetworkInterfaceOptionSettings (
380+ data_path = schema .NetworkDataPath .Sriov ,
381+ nic_count = search_space .IntRange (min = 2 , choose_max_value = True ),
382+ ),
382383 ),
383384 )
384385 def verify_sriov_provision_with_max_nics (self , environment : Environment ) -> None :
@@ -387,7 +388,7 @@ def verify_sriov_provision_with_max_nics(self, environment: Environment) -> None
387388
388389 @TestCaseMetadata (
389390 description = """
390- This case verify VM works well when provisioning with max (8) sriov nics.
391+ This case verify VM works well when provisioning with max sriov nics.
391392
392393 Steps,
393394 1. Provision VM with max network interfaces with enabling accelerated network.
@@ -397,8 +398,10 @@ def verify_sriov_provision_with_max_nics(self, environment: Environment) -> None
397398 """ ,
398399 priority = 2 ,
399400 requirement = simple_requirement (
400- min_nic_count = 8 ,
401- network_interface = features .Sriov (),
401+ network_interface = schema .NetworkInterfaceOptionSettings (
402+ data_path = schema .NetworkDataPath .Sriov ,
403+ nic_count = search_space .IntRange (min = 2 , choose_max_value = True ),
404+ ),
402405 ),
403406 )
404407 def verify_sriov_provision_with_max_nics_reboot (
@@ -413,7 +416,7 @@ def verify_sriov_provision_with_max_nics_reboot(
413416
414417 @TestCaseMetadata (
415418 description = """
416- This case verify VM works well when provisioning with max (8) sriov nics.
419+ This case verify VM works well when provisioning with max sriov nics.
417420
418421 Steps,
419422 1. Provision VM with max network interfaces with enabling accelerated network.
@@ -423,8 +426,10 @@ def verify_sriov_provision_with_max_nics_reboot(
423426 """ ,
424427 priority = 2 ,
425428 requirement = simple_requirement (
426- min_nic_count = 8 ,
427- network_interface = features .Sriov (),
429+ network_interface = schema .NetworkInterfaceOptionSettings (
430+ data_path = schema .NetworkDataPath .Sriov ,
431+ nic_count = search_space .IntRange (min = 2 , choose_max_value = True ),
432+ ),
428433 ),
429434 )
430435 def verify_sriov_provision_with_max_nics_reboot_from_platform (
@@ -440,7 +445,7 @@ def verify_sriov_provision_with_max_nics_reboot_from_platform(
440445
441446 @TestCaseMetadata (
442447 description = """
443- This case verify VM works well when provisioning with max (8) sriov nics.
448+ This case verify VM works well when provisioning with max sriov nics.
444449
445450 Steps,
446451 1. Provision VM with max network interfaces with enabling accelerated network.
@@ -450,8 +455,10 @@ def verify_sriov_provision_with_max_nics_reboot_from_platform(
450455 """ ,
451456 priority = 2 ,
452457 requirement = simple_requirement (
453- min_nic_count = 8 ,
454- network_interface = features .Sriov (),
458+ network_interface = schema .NetworkInterfaceOptionSettings (
459+ data_path = schema .NetworkDataPath .Sriov ,
460+ nic_count = search_space .IntRange (min = 2 , choose_max_value = True ),
461+ ),
455462 ),
456463 )
457464 def verify_sriov_provision_with_max_nics_stop_start_from_platform (
@@ -479,8 +486,10 @@ def verify_sriov_provision_with_max_nics_stop_start_from_platform(
479486 priority = 1 ,
480487 requirement = simple_requirement (
481488 min_count = 2 ,
482- min_nic_count = 8 ,
483- network_interface = features .Sriov (),
489+ network_interface = schema .NetworkInterfaceOptionSettings (
490+ data_path = schema .NetworkDataPath .Sriov ,
491+ nic_count = search_space .IntRange (min = 2 , choose_max_value = True ),
492+ ),
484493 ),
485494 )
486495 def verify_sriov_reload_modules (self , environment : Environment ) -> None :
@@ -528,7 +537,7 @@ def verify_sriov_reload_modules(self, environment: Environment) -> None:
528537 requirement = simple_requirement (
529538 min_count = 2 ,
530539 network_interface = schema .NetworkInterfaceOptionSettings (
531- nic_count = search_space .IntRange (min = 3 , max = 8 ),
540+ nic_count = search_space .IntRange (min = 3 ),
532541 data_path = schema .NetworkDataPath .Sriov ,
533542 ),
534543 # BSD is unsupported since this is testing to patches to the linux kernel
0 commit comments