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
…6075)

Without it, stats for bond's interfaces are not identified correctly.

Fixes: bd4dda5 (IH-715 - rrdp-netdev:
Remove double (de)serialization)
  • Loading branch information
lindig authored Oct 23, 2024
2 parents 97aa03f + 98384e8 commit 46f0f42
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 46f0f42

Please sign in to comment.