diff --git a/inventory_provider/routes/classifier.py b/inventory_provider/routes/classifier.py index d5df0457af71fff462b9551913c3d031f55241f4..efcc88a7a563e5ec89aafce624d98fdd71fb94dd 100644 --- a/inventory_provider/routes/classifier.py +++ b/inventory_provider/routes/classifier.py @@ -14,7 +14,7 @@ These endpoints are intended for use by Dashboard V3. /classifier/juniper-link-info ----------------------------- -.. autofunction:: inventory_provider.routes.classifier.get_juniper_link_info +.. autofunction:: inventory_provider.routes.classifier.handle_link_info_request /classifier/infinera-fiberlink-info @@ -250,7 +250,7 @@ def _link_interface_info(r, hostname, interface): Generates the 'interface' field for the juniper-link-info response payload. - only called from get_juniper_link_info + only called from handle_link_info_request :param r: redis connection :param hostname: router hostname @@ -380,7 +380,7 @@ def handle_epipe_sap_info_request(source_equipment: str, service_id: str, vpn_id cache_key = \ f'classifier-cache:epipe_sap:{source_equipment}:{service_id}:{vpn_id}' - + print(f'cache_key: {cache_key}') result = _ignore_cache_or_retrieve(request, cache_key, r) @@ -400,7 +400,7 @@ def handle_epipe_sap_info_request(source_equipment: str, service_id: str, vpn_id result = json.dumps(result) # cache this data for the next call r.set(cache_key, result.encode('utf-8')) - + return Response(result, mimetype="application/json")