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

removed 'T' from interface if it exists

parent 00b0856e
No related branches found
No related tags found
No related merge requests found
......@@ -252,10 +252,12 @@ def peer_info(address):
methods=['GET', 'POST'])
@common.require_accepts_json
def get_trap_metadata(source_equipment, interface, circuit_id):
r = common.get_redis()
interface = interface.replace('-T', '-')
cache_key = 'classifier-cache:infinera:%s:%s' % (
source_equipment, interface)
r = common.get_redis()
result = r.get(cache_key)
if result:
......
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