NsiTopic: added name, description and datacenter to NSI record 06/7006/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 29 Nov 2018 22:41:37 +0000 (23:41 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 29 Nov 2018 23:01:31 +0000 (00:01 +0100)
Change-Id: Iced7d9a9d72b04be375b0aedcf7df906a1c66f0a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_nbi/instance_topics.py

index c3471ea..210a207 100644 (file)
@@ -796,7 +796,11 @@ class NsiTopic(BaseTopic):
             # TODO: Equal as template for now
             nsi_descriptor = {
                 "id": nsi_id,
+                "name": slice_request["nsiName"],
+                "description": slice_request.get("nsiDescription", ""),
+                "datacenter": slice_request["vimAccountId"],
                 "nst-ref": nstd["id"],
+                # "instantiate_params": slice_request,
                 "instantiation-parameters": {
                     "netslice-subnet": []
                 },