Skip to content
Snippets Groups Projects
Commit cffc51ed authored by Robert Latta's avatar Robert Latta
Browse files

added link-info and nokia-link-info routes

parent 27eb6176
No related branches found
No related tags found
No related merge requests found
......@@ -249,6 +249,10 @@ def _link_interface_info(r, hostname, interface):
return ifc_info
@routes.route("/link-info/<source_equipment>/<path:interface>",
methods=['GET'])
@routes.route("/nokia-link-info/<source_equipment>/<path:interface>",
methods=['GET'])
@routes.route("/juniper-link-info/<source_equipment>/<path:interface>",
methods=['GET'])
@common.require_accepts_json
......@@ -273,7 +277,7 @@ def get_juniper_link_info(source_equipment: str, interface: str) -> Response:
ims_interface = get_ims_interface(interface)
cache_key = \
f'classifier-cache:juniper:{ims_source_equipment}:{ims_interface}'
f'classifier-cache:link:{ims_source_equipment}:{ims_interface}'
result = _ignore_cache_or_retrieve(request, cache_key, r)
......
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