diff --git a/src/swsssdk/configdb.py b/src/swsssdk/configdb.py index ab0ee86dc97f..8fcad0b4c689 100644 --- a/src/swsssdk/configdb.py +++ b/src/swsssdk/configdb.py @@ -415,7 +415,7 @@ def mod_config(self, data): pipe.execute() client.bgsave() - def _get_config(self, client, pipe, data, cursor): + def __get_config(self, client, pipe, data, cursor): """Read config data in batches of size REDIS_SCAN_BATCH_SIZE using Redis pipelines Args: client: Redis client @@ -454,9 +454,9 @@ def get_config(self): pipe = client.pipeline() data = {} - cur = self._get_config(client, pipe, data, 0) + cur = self.__get_config(client, pipe, data, 0) while cur != 0: - cur = self._get_config(client, pipe, data, cur) + cur = self.__get_config(client, pipe, data, cur) return data