Skip to content
Snippets Groups Projects
Verified Commit 42599447 authored by Janis Streib's avatar Janis Streib :owl:
Browse files

ADD: oui-db dump endpoint

parent affed57d
No related branches found
No related tags found
No related merge requests found
Pipeline #422743 passed
......@@ -128,3 +128,8 @@ async def oui_lookup(mac: str):
if v[0] <= r_part <= v[1]:
return JSONResponse({'mac': mac, 'vendor': v[2]})
return JSONResponse({'mac': mac, 'vendor': vendor[0][2]})
@router.get('/oui_dump')
async def oui_dump():
return JSONResponse(OUI_DB)
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