Skip to content
Snippets Groups Projects
Commit 4ecc84bd authored by Erik Reid's avatar Erik Reid
Browse files

parallelized ix_public_peering:* redis key loading

parent 719ef07b
No related branches found
No related tags found
No related merge requests found
......@@ -244,10 +244,12 @@ def ix_peering_info(peer_info):
r = common.get_current_redis()
for k in r.keys('ix_public_peer:*'):
other = r.get(k.decode('utf-8')).decode('utf-8')
other = json.loads(other)
for doc in common.load_json_docs(
config_params=current_app.config['INVENTORY_PROVIDER_CONFIG'],
key_pattern='ix_public_peer:*',
num_threads=10):
other = doc['value']
if other['router'] == peer_info['router']:
result['router'].append(other['name'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment