fix inconsistency with tosca def 37/27937/1
authorDenes Nemeth <denes.nemeth@nokia.com>
Thu, 11 Jan 2018 08:02:06 +0000 (09:02 +0100)
committerDenes Nemeth <denes.nemeth@nokia.com>
Thu, 11 Jan 2018 08:35:57 +0000 (09:35 +0100)
Change-Id: I5bbf8f5bed49ecad393c46546588f977b66b0fed
Issue-ID: VFC-657
Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com>
.gitignore
catalog/pub/utils/toscaparser/vnfdmodel.py

index 67c551b..6e7f02b 100644 (file)
@@ -1,3 +1,5 @@
 logs/*.log
 *.pyc
-.idea
\ No newline at end of file
+.idea
+.tox
+target
index 80722f7..7b66241 100644 (file)
@@ -175,9 +175,9 @@ class EtsiVnfdInfoModel(EtsiNsdInfoModel):
                 ret['volume_storages'] = map(functools.partial(self._trans_volume_storage), volume_storages)
                 ret['dependencies'] = map(lambda x: self.get_requirement_node_name(x), self.getNodeDependencys(node))
 
-                nfv_compute = self.getCapabilityByName(node, 'nfv_compute')
-                if nfv_compute is not None and 'properties' in nfv_compute:
-                    ret['nfv_compute'] = nfv_compute['properties']
+                virtual_compute = self.getCapabilityByName(node, 'virtual_compute')
+                if virtual_compute is not None and 'properties' in virtual_compute:
+                    ret['virtual_compute'] = virtual_compute['properties']
 
                 ret['vls'] = self.get_linked_vl_ids(node, nodeTemplates)