Store vca status dictionary format
Change-Id: Iabcee9f76c49d3db23620c0d45f94dbc18d83078
Signed-off-by: quilesj <e.nvi001.tid@telefonica.com>
diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py
index 9a001b1..f5221d1 100644
--- a/osm_lcm/ns.py
+++ b/osm_lcm/ns.py
@@ -163,6 +163,10 @@
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 @@
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()