- try:
- nsrs_id = filter.get('_id')
- # get ns record
- nsr = self.db.get_one(table=table, q_filter=filter)
- # get VCA deployed list
- vca_list = deep_get(target_dict=nsr, key_list=('_admin', 'deployed', 'VCA'))
- # get RO deployed
- ro_list = deep_get(target_dict=nsr, key_list=('_admin', 'deployed', 'RO'))
- for vca in vca_list:
- status = vca.get('status')
- detailed_status = vca.get('detailed-status')
- for ro in ro_list:
- pass
-
- except Exception as e:
- self.logger.error('_on_update_n2vc_db(table={},filter={},path={},updated_data={}) Error updating db: {}'
- .format(table, filter, path, updated_data, e))
+ # try:
+ # # nsrs_id = filter.get('_id')
+ # # get ns record
+ # nsr = self.db.get_one(table=table, q_filter=filter)
+ # # get VCA deployed list
+ # vca_list = deep_get(target_dict=nsr, key_list=('_admin', 'deployed', 'VCA'))
+ # # get RO deployed
+ # ro_list = deep_get(target_dict=nsr, key_list=('_admin', 'deployed', 'RO'))
+ # for vca in vca_list:
+ # status = vca.get('status')
+ # detailed_status = vca.get('detailed-status')
+ # for ro in ro_list:
+ # pass
+ #
+ # except Exception as e:
+ # self.logger.error('_on_update_n2vc_db(table={},filter={},path={},updated_data={}) Error updating db: {}'
+ # .format(table, filter, path, updated_data, e))