Skip to content

Commit e6c80dd

Browse files
committed
ch-remote: add migration-progress call
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
1 parent 063028f commit e6c80dd

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(
@@ -1077,6 +1079,7 @@ fn get_cli_commands_sorted() -> Box<[Command]> {
10771079
Command::new("ping").about("Ping the VMM to check for API server availability"),
10781080
Command::new("power-button").about("Trigger a power button in the VM"),
10791081
Command::new("reboot").about("Reboot the VM"),
1082+
Command::new("migration-progress"),
10801083
Command::new("receive-migration")
10811084
.about("Receive a VM migration")
10821085
.arg(

0 commit comments

Comments
 (0)