Skip to content

Commit

Permalink
CA-400924 - networkd: Add bonds to devs in network_monitor_thread
Browse files Browse the repository at this point in the history
Without it, stats for bond's interfaces are not identified correctly.

Fixes: bd4dda5 (IH-715 - rrdp-netdev: Remove double (de)serialization)

Signed-off-by: Andrii Sultanov <[email protected]>
  • Loading branch information
last-genius committed Oct 23, 2024
1 parent 1683f8f commit 98384e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocaml/networkd/bin/network_monitor_thread.ml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ let rec monitor dbg () =
let bonds : (string * string list) list =
Network_server.Bridge.get_all_bonds dbg from_cache
in
let devs = get_link_stats () |> get_stats bonds in
let add_bonds bonds devs = List.map fst bonds @ devs in
let devs = get_link_stats () |> add_bonds bonds |> get_stats bonds in
( if List.length bonds <> Hashtbl.length bonds_status then
let dead_bonds =
Hashtbl.fold
Expand Down

0 comments on commit 98384e8

Please sign in to comment.