From f7f387eb5e5f5b76b1fbd4363a665ec9b7005a3f Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Thu, 10 Jan 2019 15:52:47 +0000 Subject: [PATCH] Copied in the new redis hash names --- inventory_provider/routes/opsdb.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/inventory_provider/routes/opsdb.py b/inventory_provider/routes/opsdb.py index 9d176e68..1fc02ffa 100644 --- a/inventory_provider/routes/opsdb.py +++ b/inventory_provider/routes/opsdb.py @@ -7,9 +7,12 @@ from inventory_provider.storage import external_inventory routes = Blueprint("inventory-opsdb-query-routes", __name__) -services_key = "inv_services" -interfaces_key = "inv_interfaces" -equipment_locations_key = "inv_eq_locations" +monitored_services_key = "monitored_services" +interfaces_key = "interface_services" +equipment_locations_key = "equipment_locations" +service_child_to_parents_key = "child_to_parent_circuit_relations" +service_parent_to_children_key = "parent_to_children_circuit_relations" +interface_status_key = "interface_statuses" def require_accepts_json(f): @@ -93,7 +96,7 @@ def get_children(parent_id): r = db.get_redis() return Response( r.hget( - external_inventory.service_parent_to_children_key, + service_parent_to_children_key, parent_id), mimetype="application/json") @@ -103,6 +106,6 @@ def get_parents(child_id): r = db.get_redis() return Response( r.hget( - external_inventory.service_child_to_parents_key, + service_child_to_parents_key, child_id), mimetype="application/json") -- GitLab