Skip to content

Commit

Permalink
[DM]: Fix for reading DM private DB keyspace columns.
Browse files Browse the repository at this point in the history
Currently DM invokes get_range() with column count 0.
This call does not return persisted ip-addresses.
Similar to this, ae id allocations also not read properly.
Fixed.

Change-Id: I37ad9dae8aec13a38cd810f15bc1265109c841b2
Closes-Bug: #1772160
  • Loading branch information
sbalineni committed May 30, 2018
1 parent ec4e891 commit eaaa3d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/device-manager/device_manager/db.py
Expand Up @@ -1668,7 +1668,7 @@ def handle_pnf_resource_deletes(self, si_id_list):

def init_pr_map(self):
cf = self.get_cf(self._PR_VN_IP_CF)
pr_entries = dict(cf.get_range(column_count=0, filter_empty=False))
pr_entries = dict(cf.get_range(column_count=1000000))
for key in pr_entries.keys():
key_data = key.split(':', 1)
cols = pr_entries[key] or {}
Expand All @@ -1680,7 +1680,7 @@ def init_pr_map(self):

def init_pr_ae_map(self):
cf = self.get_cf(self._PR_AE_ID_CF)
pr_entries = dict(cf.get_range(column_count=0, filter_empty=False))
pr_entries = dict(cf.get_range(column_count=1000000))
for key in pr_entries.keys():
key_data = key.split(':', 1)
(pr_uuid, esi) = (key_data[0], key_data[1])
Expand Down

0 comments on commit eaaa3d2

Please sign in to comment.