Skip to content

helpers.network.interface

Module Dependencies

Functions

get_local_interfaces()

Return a list of local network interface names on Linux.

get_interface_from_ipv4(ipv4: str)

Return the network interface(s) whose network contains the given IPv4 address.

Args:
ipv4 (str): IPv4 address to check.

Returns:
str: String of interface names matching the given IP.
None if no interface matches.