From: tierno Date: Thu, 10 May 2018 16:33:16 +0000 (+0200) Subject: Bug 496 fixed SDN controller creation X-Git-Tag: v4.0.0~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=ea66a417297a81a3f3fbef66f9bf3939959dc0c0;p=osm%2FRO.git Bug 496 fixed SDN controller creation Change-Id: I636b14ed615a03d09c667672c27a36261dc0a815 Signed-off-by: tierno --- diff --git a/lcm/osm_lcm/ROclient.py b/lcm/osm_lcm/ROclient.py index 08a04076..b6983d32 100644 --- a/lcm/osm_lcm/ROclient.py +++ b/lcm/osm_lcm/ROclient.py @@ -229,6 +229,8 @@ class ROClient: return {'datacenter': indata} elif item == "ns" or item == "instances": return {'instance': indata} + elif item == "sdn": + return {'sdn_controller': indata} else: assert False, "_create_envelop with unknown item {}".format(item) diff --git a/lcm/osm_lcm/lcm.py b/lcm/osm_lcm/lcm.py index aac7e823..f7b6ca69 100644 --- a/lcm/osm_lcm/lcm.py +++ b/lcm/osm_lcm/lcm.py @@ -332,6 +332,7 @@ class Lcm: sdn_RO.pop("_admin", None) sdn_RO.pop("schema_version", None) sdn_RO.pop("schema_type", None) + sdn_RO.pop("description", None) desc = await RO.create("sdn", descriptor=sdn_RO) RO_sdn_id = desc["uuid"] db_sdn["_admin"]["deployed"]["RO"] = RO_sdn_id @@ -370,6 +371,7 @@ class Lcm: sdn_RO.pop("_admin", None) sdn_RO.pop("schema_version", None) sdn_RO.pop("schema_type", None) + sdn_RO.pop("description", None) if sdn_RO: desc = await RO.edit("sdn", RO_sdn_id, descriptor=sdn_RO) db_sdn["_admin"]["operationalState"] = "ENABLED"