From: Ravi Chamarty Date: Tue, 23 May 2017 21:41:40 +0000 (+0000) Subject: Bug 275 Add SO-RO for OM cores X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=4fe85aaedb7dfefe850241203b6b5eeef6f816ec;hp=-c;p=osm%2FSO.git Bug 275 Add SO-RO for OM cores Signed-off-by: Ravi Chamarty --- 4fe85aaedb7dfefe850241203b6b5eeef6f816ec diff --git a/models/openmano/python/rift/openmano/rift2openmano.py b/models/openmano/python/rift/openmano/rift2openmano.py index 61e195b0..d76c4708 100755 --- a/models/openmano/python/rift/openmano/rift2openmano.py +++ b/models/openmano/python/rift/openmano/rift2openmano.py @@ -559,6 +559,9 @@ def rift2openmano_vnfd(rift_vnfd, rift_nsd): if numa_node_policy.has_field("node"): numa_node = numa_node_policy.node[0] + if numa_node.has_field("num_cores"): + vnfc["numas"][0]["cores"] = numa_node.num_cores + if numa_node.has_field("paired_threads"): if numa_node.paired_threads.has_field("num_paired_threads"): vnfc["numas"][0]["paired-threads"] = numa_node.paired_threads.num_paired_threads