get_default_interface¶
- getmac.getmac.get_default_interface()[source]¶
Get the name of the default network interface on the system.
This is essentially a convenience wrapper around
get_by_method()with thedefault_ifacemethod type. The code is literallyreturn getmac.getmac.get_by_method("default_iface").