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

use redis netdash key instead of junosspace

parent bd4276cb
No related branches found
No related tags found
No related merge requests found
......@@ -54,12 +54,9 @@ def update_interface_statuses():
def juniper_addresses():
# TODO: this route (and corant, infinera routes) can be removed
r = common.get_current_redis()
routers = []
for k in r.keys('junosspace:*'):
info = r.get(k.decode('utf-8'))
assert info # sanity: value shouldn't be empty
info = json.loads(info.decode('utf-8'))
routers.append(info['address'])
routers = r.get('netdash')
assert routers # sanity: value shouldn't be empty
routers = json.loads(routers.decode('utf-8'))
return jsonify(routers)
......
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