Skip to content
Snippets Groups Projects
Verified Commit d67f6b7d authored by Julian Keck's avatar Julian Keck :smiley:
Browse files

UPD: handle feeddeadbeef as scc gateway in oui_lookup

parent 9fceeb17
No related branches found
No related tags found
No related merge requests found
Pipeline #408462 passed
......@@ -116,6 +116,8 @@ async def query_job(job_id: str,
async def oui_lookup(mac: str):
mac = format_mac(mac)
vendor = OUI_DB.get(mac[:8], None)
if mac == 'fe:ed:de:ad:be:ef':
return JSONResponse({'mac': mac, 'vendor': 'SCC anycast gateway'})
if vendor is None:
return JSONResponse({'mac': mac, 'vendor': None}, status_code=status.HTTP_404_NOT_FOUND)
if len(vendor) > 1:
......
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