mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
The topology tool keyed nodes by name, so two connections with a node called pmx1 became one row: the last status won, both sets of guests sat under it, and one agent marked both as connected. The model was told a guest ran on the wrong machine and could act on that. Topology now keys a node by connection and name, and follows a guest's canonical parent first. Rows whose shown name repeats gain the connection and the canonical ID, because Assistant refuses a repeated name and asks for the ID. Output for a single installation is unchanged: on the 50-node mock inventory the JSON is byte-identical when names match node names. The same key fixes display names. A node whose shown name differs from its Proxmox name split into an empty row and an unknown row holding the guests, which on the mock inventory meant 100 rows for 50 nodes. Command flags now come from the function routing uses, so the hint matches where a command goes. Sharing it exposed two wrong-machine routes. A guest whose node is missing from inventory took the agent of a same-named node on another connection, and a node whose linked agent was offline fell back to any agent with its hostname. Both now refuse. Refs #2681