diff options
author | dhebeha <dhebeha.mj71@wipro.com> | 2020-04-30 16:12:32 +0530 |
---|---|---|
committer | dhebeha <dhebeha.mj71@wipro.com> | 2020-04-30 16:35:30 +0530 |
commit | e07bb7a6bce3fa331c3e556395663dd77bc02676 (patch) | |
tree | 3fb75972940303b79cf237caa034824d96b9758c /apps/pci/optimizers/solver/pci_utils.py | |
parent | d4a0085a8f75c62912d19613459ad1bc3dce3e73 (diff) |
Change to support PCI unchangeable cells
Issue-ID: OPTFRA-678
Signed-off-by: dhebeha <dhebeha.mj71@wipro.com>
Change-Id: Ib7620cb19850d77e80b2baea5ef318e8b0182d7c
Diffstat (limited to 'apps/pci/optimizers/solver/pci_utils.py')
-rw-r--r-- | apps/pci/optimizers/solver/pci_utils.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/pci/optimizers/solver/pci_utils.py b/apps/pci/optimizers/solver/pci_utils.py index 04829cf..7db3a6f 100644 --- a/apps/pci/optimizers/solver/pci_utils.py +++ b/apps/pci/optimizers/solver/pci_utils.py @@ -16,6 +16,13 @@ # ------------------------------------------------------------------------- # +def mapping(network_cell_info): + cell_id_mapping= dict() + id_cell_mapping = dict() + for i in network_cell_info['cell_list']: + cell_id_mapping[i['cell_id']] = i['id'] + id_cell_mapping[i['id']] = i['cell_id'] + return cell_id_mapping, id_cell_mapping def get_id(network_cell_info, cell_id): for i in network_cell_info['cell_list']: |