From: bravof Date: Wed, 12 May 2021 14:14:21 +0000 (-0400) Subject: bugfix(descriptors): add type-of-storage to VNFR data model X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F93%2F10793%2F1;p=osm%2FNBI.git bugfix(descriptors): add type-of-storage to VNFR data model Change-Id: Id5c71330c96f01e39c3707333c62fb17b01ddd12 Signed-off-by: bravof --- diff --git a/osm_nbi/instance_topics.py b/osm_nbi/instance_topics.py index bf0e3a9..eb15d83 100644 --- a/osm_nbi/instance_topics.py +++ b/osm_nbi/instance_topics.py @@ -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"]