From 69a722cb1fd8af6c247acf0dc95a4416c873deac Mon Sep 17 00:00:00 2001 From: quilesj Date: Thu, 9 Jan 2020 08:30:17 +0000 Subject: [PATCH] Store vca status dictionary format Change-Id: Iabcee9f76c49d3db23620c0d45f94dbc18d83078 Signed-off-by: quilesj --- osm_lcm/ns.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index 9a001b15..f5221d1d 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -163,6 +163,10 @@ class NsLcm(LcmBase): async def _on_update_n2vc_db(self, table, filter, path, updated_data): + # remove last dot from path (if exists) + if path.endswith('.'): + path = path[:-1] + # self.logger.debug('_on_update_n2vc_db(table={}, filter={}, path={}, updated_data={}' # .format(table, filter, path, updated_data)) @@ -175,9 +179,7 @@ class NsLcm(LcmBase): current_ns_status = nsr.get('nsState') # get vca status for NS - # status_dict = await self.n2vc.get_status(namespace='.' + nsr_id, yaml_format=False) - # TEMPORAL - status_dict = str(await self.n2vc.get_status(namespace='.' + nsr_id)) + status_dict = await self.n2vc.get_status(namespace='.' + nsr_id, yaml_format=False) # vcaStatus db_dict = dict() -- 2.25.1