Skip to content

Commit 6d68c0c

Browse files
committed
ch-remote: add migration-progress command
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
1 parent 380865b commit 6d68c0c

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
@@ -303,6 +303,8 @@ fn rest_api_do_command(matches: &ArgMatches, socket: &mut UnixStream) -> ApiResu
303303
Some("shutdown") => {
304304
simple_api_command(socket, "PUT", "shutdown", None).map_err(Error::HttpApiClient)
305305
}
306+
Some("migration-progress") => simple_api_command(socket, "GET", "migration-progress", None)
307+
.map_err(Error::HttpApiClient),
306308
Some("nmi") => simple_api_command(socket, "PUT", "nmi", None).map_err(Error::HttpApiClient),
307309
Some("resize") => {
308310
let resize = resize_config(
@@ -1072,6 +1074,7 @@ fn get_cli_commands_sorted() -> Box<[Command]> {
10721074
.arg(Arg::new("path").index(1).default_value("-")),
10731075
Command::new("delete").about("Delete a VM"),
10741076
Command::new("info").about("Info on the VM"),
1077+
Command::new("migration-progress"),
10751078
Command::new("nmi").about("Trigger NMI"),
10761079
Command::new("pause").about("Pause the VM"),
10771080
Command::new("ping").about("Ping the VMM to check for API server availability"),

0 commit comments

Comments
 (0)