Files
harmony/.sqlx/query-8d247918eca10a88b784ee353db090c94a222115c543231f2140cba27bd0f067.json
Sylvain Tremblay bf4f300383 feat(discovery): capture bond, blacklist and bond-mode intent per host
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.
2026-04-21 10:13:58 -04:00

33 lines
1007 B
JSON

{
"db_name": "SQLite",
"query": "\n SELECT\n p1.id,\n p1.version_id,\n p1.data as \"data: Json<PhysicalHost>\"\n FROM\n physical_hosts p1\n INNER JOIN (\n SELECT\n id,\n MAX(version_id) AS max_version\n FROM\n physical_hosts\n GROUP BY\n id\n ) p2 ON p1.id = p2.id AND p1.version_id = p2.max_version\n ",
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "version_id",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "data: Json<PhysicalHost>",
"ordinal": 2,
"type_info": "Null"
}
],
"parameters": {
"Right": 0
},
"nullable": [
false,
false,
false
]
},
"hash": "8d247918eca10a88b784ee353db090c94a222115c543231f2140cba27bd0f067"
}