Extend DiscoverHostForRoleScore with three new interactive prompts after
the installation-disk selection:
- "Configure a network bond?" (only when host has >= 2 NICs), followed by
a multi-select of bond members (min 2) and a bond-mode picker
(LACP / active-backup / balance-rr / balance-xor / broadcast /
balance-tlb / balance-alb).
- "Blacklist any remaining interface?", with candidates limited to NICs
not already claimed by the bond.
The answers are persisted as a JSON-encoded NetworkConfig on a new
host_role_mapping.network_config column. HostConfig now exposes
network_config alongside installation_device so downstream scores can
honor the user's intent.
Also adds a new harmony_host_discovery example that discovers a single
host on 192.168.40.0/24:25000.
16 lines
397 B
TOML
16 lines
397 B
TOML
[package]
|
|
name = "harmony_host_discovery"
|
|
edition = "2024"
|
|
version.workspace = true
|
|
readme.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
harmony = { path = "../../harmony" }
|
|
harmony_cli = { path = "../../harmony_cli" }
|
|
harmony_macros = { path = "../../harmony_macros" }
|
|
harmony_types = { path = "../../harmony_types" }
|
|
tokio.workspace = true
|
|
url.workspace = true
|
|
cidr.workspace = true
|