We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84651d6 commit 2e76d7eCopy full SHA for 2e76d7e
1 file changed
task.py
@@ -453,7 +453,15 @@ def _get_sriov_resource_quantity(
453
) -> str:
454
if self.pod_type == PodType.SRIOV:
455
return str(1 + int(self.ts.test_case_id.is_udn_primary))
456
- return str(len(secondary_network_nads) + int(self.node.sriov))
+ needs_primary_udn_vf = self.ts.test_case_id.is_udn_secondary and any(
457
+ test_case.is_udn_primary
458
+ for test_case in self.ts.cfg_descr.get_tft().test_cases
459
+ )
460
+ return str(
461
+ len(secondary_network_nads)
462
+ + int(self.node.sriov)
463
+ + int(needs_primary_udn_vf)
464
465
466
def get_template_args(self) -> dict[str, str | list[str] | bool]:
467
resource_name = self.get_resource_name()
0 commit comments