bugfix(descriptors): add type-of-storage to VNFR data model 93/10793/1 bug1511
authorbravof <fbravo@whitestack.com>
Wed, 12 May 2021 14:14:21 +0000 (10:14 -0400)
committerbravof <fbravo@whitestack.com>
Wed, 12 May 2021 14:14:21 +0000 (10:14 -0400)
Change-Id: Id5c71330c96f01e39c3707333c62fb17b01ddd12
Signed-off-by: bravof <fbravo@whitestack.com>
osm_nbi/instance_topics.py

index bf0e3a9..eb15d83 100644 (file)
@@ -388,6 +388,8 @@ class NsrTopic(BaseTopic):
                         flavor_data["memory-mb"] = float(vdu_virtual_compute["virtual-memory"]["size"]) * 1024.0
                     if vdu_virtual_storage.get("size-of-storage"):
                         flavor_data["storage-gb"] = vdu_virtual_storage["size-of-storage"]
+                    if vdu_virtual_storage.get("type-of-storage"):
+                        flavor_data["storage-type"] = vdu_virtual_storage["type-of-storage"]
                     # Get this vdu EPA info for guest_epa
                     if vdu_virtual_compute.get("virtual-cpu", {}).get("cpu-quota"):
                         guest_epa["cpu-quota"] = vdu_virtual_compute["virtual-cpu"]["cpu-quota"]