diff options
author | Huang Haibin <haibin.huang@intel.com> | 2018-10-25 13:53:19 +0800 |
---|---|---|
committer | Huang Haibin <haibin.huang@intel.com> | 2018-10-25 13:53:19 +0800 |
commit | 7c594faa53eee523eb3378f8fcc5094264128f52 (patch) | |
tree | 63a0d891095211fffbb7deeaf74d1234248dbf3f /windriver/titanium_cloud/resource | |
parent | 8c7c3682cf19a8064752d4d7b5d9b232b73416b8 (diff) |
Add SRIOV-NIC infra workload for windriver
Change-Id: I33c46dd14227db76467f914e749b30a306ecb90e
Issue-ID: MULTICLOUD-250
Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'windriver/titanium_cloud/resource')
-rw-r--r-- | windriver/titanium_cloud/resource/views/infra_workload.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |