Skip to content

Commit 6909760

Browse files
committed
ch-remote: add cancel-migration
On-behalf-of: SAP philipp.schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
1 parent 93c23ad commit 6909760

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cloud-hypervisor/src/bin/ch-remote.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,8 @@ fn rest_api_do_command(matches: &ArgMatches, socket: &mut UnixStream) -> ApiResu
631631
)?;
632632
simple_api_command(socket, "PUT", "create", Some(&data)).map_err(Error::HttpApiClient)
633633
}
634+
Some("cancel-migration") => simple_api_command(socket, "PUT", "cancel-migration", None)
635+
.map_err(Error::HttpApiClient),
634636
_ => unreachable!(),
635637
}
636638
}
@@ -1139,6 +1141,7 @@ fn get_cli_commands_sorted() -> Box<[Command]> {
11391141
.about("Add vsock device")
11401142
.arg(Arg::new("vsock_config").index(1).help(VsockConfig::SYNTAX)),
11411143
Command::new("boot").about("Boot a created VM"),
1144+
Command::new("cancel-migration").about("Cancel any ongoing migration"),
11421145
Command::new("coredump")
11431146
.about("Create a coredump from VM")
11441147
.arg(Arg::new("coredump_config").index(1).help("<file_path>")),

0 commit comments

Comments
 (0)