#980 Add Virtual status

Since version 1.2.0, OpenGnsys supports ogVDI hypervisor OS. This commit
a new status which indicates that clients are running ogVDI.
master
Javier Sánchez Parra 2020-06-25 11:21:00 +02:00 committed by OpenGnSys Support Team
parent f6f1f18bd8
commit c0f5d2c206
3 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,8 @@ static int og_resp_probe(struct og_client *cli, json_t *data)
cli->status = OG_CLIENT_STATUS_BUSY;
else if (!strcmp(status, "OPG"))
cli->status = OG_CLIENT_STATUS_OGLIVE;
else if (!strcmp(status, "VDI"))
cli->status = OG_CLIENT_STATUS_VIRTUAL;
return status ? 0 : -1;
}

View File

@ -146,6 +146,8 @@ static const char *og_client_status(const struct og_client *cli)
return "BSY";
case OG_CLIENT_STATUS_OGLIVE:
return "OPG";
case OG_CLIENT_STATUS_VIRTUAL:
return "VDI";
default:
return "OFF";
}

View File

@ -14,6 +14,7 @@ enum og_client_state {
enum og_client_status {
OG_CLIENT_STATUS_OGLIVE,
OG_CLIENT_STATUS_BUSY,
OG_CLIENT_STATUS_VIRTUAL,
};
enum og_cmd_type {