Skip to content

Commit 02b0515

Browse files
simonjbeaumontjohnelse
authored andcommitted
Add VGPU_type.{supported,enabled}_on_PGPUs to CLI
Signed-off-by: Si Beaumont <[email protected]>
1 parent c3320a4 commit 02b0515

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ocaml/client_records/records.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,10 @@ let vgpu_type_record rpc session_id vgpu_type =
16061606
~get:(fun () -> Int64.to_string (x ()).API.vGPU_type_framebuffer_size) ();
16071607
make_field ~name:"max-heads"
16081608
~get:(fun () -> Int64.to_string (x ()).API.vGPU_type_max_heads) ();
1609+
make_field ~name:"supported-on-PGPUs"
1610+
~get:(fun () -> String.concat "; " (List.map (fun p -> get_uuid_from_ref p) (x ()).API.vGPU_type_supported_on_PGPUs)) ();
1611+
make_field ~name:"enabled-on-PGPUs"
1612+
~get:(fun () -> String.concat "; " (List.map (fun p -> get_uuid_from_ref p) (x ()).API.vGPU_type_enabled_on_PGPUs)) ();
16091613
make_field ~name:"VGPU-uuids" ~get:(fun () -> String.concat "; " (List.map (fun v -> get_uuid_from_ref v) (x ()).API.vGPU_type_VGPUs)) ();
16101614
]
16111615
}

0 commit comments

Comments
 (0)