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

Merge branch 'feature/DBOARD3-173' into develop

parents e31908dd 560cfd7d
No related branches found
No related tags found
No related merge requests found
......@@ -237,6 +237,14 @@ def find_interfaces_and_services(address_str):
@common.require_accepts_json
def peer_info(address):
# canonicalize the input address first ...
try:
obj = ipaddress.ip_address(address)
address = obj.exploded
except ValueError:
raise ClassifierProcessingError(
'unable to parse %r as an ip address' % address)
r = common.get_current_redis()
cache_key = 'classifier-cache:peer:%s' % address
......
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