VintageNet.Interface.Classification.to_type

You're seeing just the function to_type, go back to VintageNet.Interface.Classification module for more information.

Specs

Classify a network type based on its name

Examples

iex> Classification.to_type("eth0")
:ethernet

iex> Classification.to_type("wlp5s0")
:wifi

iex> Classification.to_type("ppp0")
:mobile