Add disk and network info

This commit is contained in:
2023-09-08 14:00:39 +02:00
parent dac50600e3
commit e9dcc57e11
3 changed files with 119 additions and 4 deletions

View File

@ -39,6 +39,7 @@ pub async fn server_info(client: LibVirtReq) -> HttpResult {
let mut system = System::new();
system.refresh_disks_list();
system.refresh_components_list();
system.refresh_networks_list();
system.refresh_all();
Ok(HttpResponse::Ok().json(ServerInfo {