From 95aedea4c4577148e56652865c8611255e5eaa0c Mon Sep 17 00:00:00 2001 From: bravof Date: Wed, 12 May 2021 10:14:21 -0400 Subject: [PATCH] bugfix(descriptors): add type-of-storage to VNFR data model Change-Id: Id5c71330c96f01e39c3707333c62fb17b01ddd12 Signed-off-by: bravof --- osm_nbi/instance_topics.py | 2 ++ 1 file changed, 2 insertions(+) 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"] -- 2.25.1