Add SRIOV-NIC infra workload for windriver 14/71214/1
authorHuang Haibin <haibin.huang@intel.com>
Thu, 25 Oct 2018 05:53:19 +0000 (13:53 +0800)
committerHuang Haibin <haibin.huang@intel.com>
Thu, 25 Oct 2018 05:53:19 +0000 (13:53 +0800)
Change-Id: I33c46dd14227db76467f914e749b30a306ecb90e
Issue-ID: MULTICLOUD-250
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
windriver/titanium_cloud/resource/views/infra_workload.py

index 6b620da..ef57e65 100644 (file)
@@ -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)