monitord::networkd

Function parse_interface_stats

Source
pub fn parse_interface_stats(
    interface_state_str: String,
    interface_id: i32,
    interface_id_to_name: &HashMap<i32, String>,
) -> Result<InterfaceState, String>
Expand description

Parse a networkd state file contents + convert int ID to name via DBUS