admit op_id for Vim/Wim/Sdn create/edit. Compatibility for new NBI versions 54/7754/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 5 Jul 2019 11:54:25 +0000 (11:54 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 5 Jul 2019 11:54:25 +0000 (11:54 +0000)
Change-Id: I0ede3bdc37326bead60a62f7fcb7fb3fc3944ece
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_lcm/vim_sdn.py

index 0f4c431..ed25820 100644 (file)
@@ -47,6 +47,7 @@ class VimLcm(LcmBase):
 
     async def create(self, vim_content, order_id):
         vim_id = vim_content["_id"]
+        vim_content.pop("op_id", None)
         logging_text = "Task vim_create={} ".format(vim_id)
         self.logger.debug(logging_text + "Enter")
         db_vim = None
@@ -139,6 +140,7 @@ class VimLcm(LcmBase):
 
     async def edit(self, vim_content, order_id):
         vim_id = vim_content["_id"]
+        vim_content.pop("op_id", None)
         logging_text = "Task vim_edit={} ".format(vim_id)
         self.logger.debug(logging_text + "Enter")
         db_vim = None
@@ -331,6 +333,7 @@ class WimLcm(LcmBase):
 
     async def create(self, wim_content, order_id):
         wim_id = wim_content["_id"]
+        wim_content.pop("op_id", None)
         logging_text = "Task wim_create={} ".format(wim_id)
         self.logger.debug(logging_text + "Enter")
         db_wim = None
@@ -408,6 +411,7 @@ class WimLcm(LcmBase):
 
     async def edit(self, wim_content, order_id):
         wim_id = wim_content["_id"]
+        wim_content.pop("op_id", None)
         logging_text = "Task wim_edit={} ".format(wim_id)
         self.logger.debug(logging_text + "Enter")
         db_wim = None
@@ -572,6 +576,7 @@ class SdnLcm(LcmBase):
 
     async def create(self, sdn_content, order_id):
         sdn_id = sdn_content["_id"]
+        sdn_content.pop("op_id", None)
         logging_text = "Task sdn_create={} ".format(sdn_id)
         self.logger.debug(logging_text + "Enter")
         db_sdn = None
@@ -623,6 +628,7 @@ class SdnLcm(LcmBase):
 
     async def edit(self, sdn_content, order_id):
         sdn_id = sdn_content["_id"]
+        sdn_content.pop("op_id", None)
         logging_text = "Task sdn_edit={} ".format(sdn_id)
         self.logger.debug(logging_text + "Enter")
         db_sdn = None