From 1d759d303cc260612ab38d311ca67c11508bf966 Mon Sep 17 00:00:00 2001 From: krishnaa96 Date: Fri, 19 Feb 2021 14:22:38 +0530 Subject: Convert cell_id in ML before optimization Issue-ID: OPTFRA-871 Signed-off-by: krishnaa96 Change-Id: I659ed1acf6147b295df4c0cd8a892eb4dafbf837 --- apps/pci/optimizers/solver/ml_model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/pci/optimizers/solver') diff --git a/apps/pci/optimizers/solver/ml_model.py b/apps/pci/optimizers/solver/ml_model.py index 67402d9..c239be8 100644 --- a/apps/pci/optimizers/solver/ml_model.py +++ b/apps/pci/optimizers/solver/ml_model.py @@ -18,6 +18,7 @@ import json +from apps.pci.optimizers.solver.pci_utils import get_id from osdf.adapters.dcae import des from osdf.adapters.dcae.des import DESException from osdf.config.base import osdf_config @@ -45,7 +46,7 @@ class MlModel(object): cell_id = cell['cell_id'] average_ho, latest_ho = self.get_ho_details(cell['cell_id']) if average_ho > average_ho_threshold or latest_ho > latest_ho_threshold: - fixed_cells.add(cell_id) + fixed_cells.add(get_id(network_cell_info, cell_id)) fixed_cells.update(dzn_data.get('PCI_UNCHANGEABLE_CELLS', [])) dzn_data['PCI_UNCHANGEABLE_CELLS'] = fixed_cells -- cgit 1.2.3-korg