From 7c594faa53eee523eb3378f8fcc5094264128f52 Mon Sep 17 00:00:00 2001 From: Huang Haibin Date: Thu, 25 Oct 2018 13:53:19 +0800 Subject: Add SRIOV-NIC infra workload for windriver Change-Id: I33c46dd14227db76467f914e749b30a306ecb90e Issue-ID: MULTICLOUD-250 Signed-off-by: Huang Haibin --- windriver/titanium_cloud/resource/views/infra_workload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'windriver') diff --git a/windriver/titanium_cloud/resource/views/infra_workload.py b/windriver/titanium_cloud/resource/views/infra_workload.py index 6b620daf..ef57e657 100644 --- a/windriver/titanium_cloud/resource/views/infra_workload.py +++ b/windriver/titanium_cloud/resource/views/infra_workload.py @@ -58,7 +58,7 @@ class InfraWorkload(APIView): for directive in oof_directive.get("directives",[]): if directive["type"] == "vnfc": for directive2 in directive.get("directives",[]): - if directive2["type"] == "flavor_directives": + if directive2["type"] in ["flavor_directives", "sriovNICNetwork_directives"]: for attr in directive2.get("attributes",[]): flavor_label = attr.get("attribute_name", None) flavor_value = attr.get("attribute_value", None) -- cgit 1.2.3-korg