summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vio/vio/pub/utils/restcall.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/vio/vio/pub/utils/restcall.py b/vio/vio/pub/utils/restcall.py
index a3b9a06..12986be 100644
--- a/vio/vio/pub/utils/restcall.py
+++ b/vio/vio/pub/utils/restcall.py
@@ -826,9 +826,10 @@ class AAIClient(object):
sriov_capability = {}
feature_uuid = uuid.uuid4()
- if extra_specs.get('sriov_nic'):
- value1 = extra_specs['sriov_nic'].split(':')
- value2 = value1[0].split('-')
+ if extra_specs.get('aggregate_instance_extra_specs:sriov_nic'):
+ value1 = extra_specs[
+ 'aggregate_instance_extra_specs:sriov_nic'].split(':')
+ value2 = value1[0].split('-', 5)
sriov_capability['hpa-capability-id'] = str(feature_uuid)
sriov_capability['hpa-feature'] = 'sriovNICNetwork'