diff options
author | Vikas Varma <vikas.varma@att.com> | 2020-05-05 14:08:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-05 14:08:34 +0000 |
commit | 1b493a741b87880181a027fe102d295fcbd6f7cb (patch) | |
tree | 132c4156fc5c3360a5e180ee351d6bbcdaa444bf /apps/pci/optimizers/solver/pci_utils.py | |
parent | 070488fcb919b2cdffca8a3739b0f9abbb9414f4 (diff) | |
parent | e07bb7a6bce3fa331c3e556395663dd77bc02676 (diff) |
Merge "Change to support PCI unchangeable cells"
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']: |