From: Ravi Chamarty Date: Wed, 24 May 2017 19:29:16 +0000 (+0000) Subject: Bug 276 Add Numa threads translation from SO to RO X-Git-Tag: v2.0.1~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=e922f7877c7c6a10e93ee4015d59d8305a45d00c;p=osm%2FSO.git Bug 276 Add Numa threads translation from SO to RO Signed-off-by: Ravi Chamarty --- diff --git a/models/openmano/python/rift/openmano/rift2openmano.py b/models/openmano/python/rift/openmano/rift2openmano.py index d76c4708..e037093c 100755 --- a/models/openmano/python/rift/openmano/rift2openmano.py +++ b/models/openmano/python/rift/openmano/rift2openmano.py @@ -572,6 +572,8 @@ def rift2openmano_vnfd(rift_vnfd, rift_nsd): [pair.thread_a, pair.thread_b] ) + if numa_node.has_field("num_threads"): + vnfc["numas"][0]["threads"] = numa_node.num_threads else: if vdu.vm_flavor.has_field("vcpu_count"): vnfc["numas"][0]["cores"] = max(vdu.vm_flavor.vcpu_count, 1)