Files
harmony/harmony_types
Sylvain Tremblay 84a083a012
All checks were successful
Run Check Script / check (pull_request) Successful in 2m6s
refactor(discovery): use shared LaggProtocol for bond mode
Replace the Linux-specific BondMode enum with harmony_types'
  LaggProtocol, which is already used by the OPNsense LAGG score.
  "Capabilities are industry concepts, not tools" — the kernel mode
  numbers (BalanceRr/ActiveBackup/…) were the wrong abstraction;
  LaggProtocol's Lacp / Failover / LoadBalance / RoundRobin span
  Linux bonding and BSD lagg uniformly. LaggProtocol now derives
  Deserialize so NetworkConfig can round-trip through SQLite.

  Make SqliteInventoryRepository::get_role_mapping tolerate a
  network_config blob it cannot deserialize: log a warning and
  fall back to NetworkConfig::default() so the operator still sees
  the existing mapping prompt and can pick "Update" to overwrite
  the bad row. This self-heals DBs that were written with the old
  BondMode variant names and gives the repo real resilience for
  future NetworkConfig evolutions.
2026-04-21 12:05:43 -04:00
..