topology: operator-driven move-agent via set_parent (#486)
This commit is contained in:
parent
501a86b725
commit
5456377622
5 changed files with 245 additions and 0 deletions
|
|
@ -46,6 +46,15 @@ pub enum HostRequest {
|
|||
Approve { id: i64 },
|
||||
/// Deny a pending request by id.
|
||||
Deny { id: i64 },
|
||||
/// Move an agent in the topology tree (#486). Pass `new_parent =
|
||||
/// None` to promote the agent to root, or `Some(name)` to set a
|
||||
/// new parent. Refuses cycles, unknown agents, and any attempt
|
||||
/// to reparent the manager (which is structurally root).
|
||||
/// Pure topology-json edit today; bind-mount work follows in #361.
|
||||
SetParent {
|
||||
child: String,
|
||||
new_parent: Option<String>,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue