Skip to main content

Module interface_utils

Module interface_utils 

Source
Expand description

Network interface discovery and filtering utilities.

This module provides reusable functions for finding and validating network interfaces, eliminating code duplication across the codebase.

Functionsยง

find_interface
Find a network interface by name (case-insensitive partial match).
get_interface_ipv4_addrs
Get all IPv4 addresses from an interface.
interface_matches
Check if interface name matches (case-insensitive partial match).
is_interface_active
Check if interface is active (up, running, not loopback).