From 5eea270e67a262e9ace8637cb54307c23d247066 Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Fri, 9 Nov 2018 13:13:46 +0800 Subject: Fixed SRIOV-NIC extra-specs format Change-Id: I479a30ca663dd9c23fab6556dc32e8dc06400489 Issue-ID: MULTICLOUD-400 Signed-off-by: Haibin Huang --- share/newton_base/registration/registration.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/newton_base/registration/registration.py b/share/newton_base/registration/registration.py index d2f0a2bf..54b1d48c 100644 --- a/share/newton_base/registration/registration.py +++ b/share/newton_base/registration/registration.py @@ -269,6 +269,7 @@ class Registry(APIView): self._logger.debug("ovsdpdk_capabilities_info: %s" % caps_dict) hpa_caps.append(caps_dict) + logger.debug("hpa_caps:%s" % hpa_caps) return hpa_caps def _get_hpa_basic_capabilities(self, flavor): @@ -512,9 +513,9 @@ class Registry(APIView): feature_uuid = uuid.uuid4() try: - if extra_specs.has_key('sriov_nic'): - value1 = extra_specs['sriov_nic'].split(':') - value2 = value1[0].split('-') + if extra_specs.has_key('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' -- cgit 1.2.3-korg