From febf041c14b7b89fec3fe97b13d26d3f3626a7d1 Mon Sep 17 00:00:00 2001 From: Ravi Chamarty Date: Tue, 16 May 2017 14:30:09 +0000 Subject: [PATCH] Bug 264 Fix SO-RO translation for multi-disk Signed-off-by: Ravi Chamarty --- models/openmano/python/rift/openmano/rift2openmano.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/models/openmano/python/rift/openmano/rift2openmano.py b/models/openmano/python/rift/openmano/rift2openmano.py index b1d1c8b0..61e195b0 100755 --- a/models/openmano/python/rift/openmano/rift2openmano.py +++ b/models/openmano/python/rift/openmano/rift2openmano.py @@ -615,9 +615,12 @@ def rift2openmano_vnfd(rift_vnfd, rift_nsd): # Add Openmano devices device = {} device["type"] = volume.device_type - device["image name"] = volume.image - if volume.has_field("image_checksum"): - device["image checksum"] = volume.image_checksum + if volume.has_field("size"): + device["size"] = volume.size + if volume.has_field("image"): + device["image name"] = volume.image + if volume.has_field("image_checksum"): + device["image checksum"] = volume.image_checksum vnfc["devices"].append(device) vnfc_boot_data_init = False -- 2.25.1