Skip to content

Commit 4acb199

Browse files
committed
Update datamodel lifecycle and bump schema
Signed-off-by: Changlei Li <changlei.li@cloud.com>
1 parent 90d21ec commit 4acb199

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

ocaml/idl/datamodel_common.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ open Datamodel_roles
1010
to leave a gap for potential hotfixes needing to increment the schema version.*)
1111
let schema_major_vsn = 5
1212

13-
let schema_minor_vsn = 791
13+
let schema_minor_vsn = 792
1414

1515
(* Historical schema versions just in case this is useful later *)
1616
let rio_schema_major_vsn = 5

ocaml/idl/datamodel_lifecycle.ml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,16 @@ let prototyped_of_field = function
9797
Some "22.26.0"
9898
| "SM", "host_pending_features" ->
9999
Some "24.37.0"
100+
| "host", "timezone" ->
101+
Some "25.37.0-next"
102+
| "host", "ntp_custom_servers" ->
103+
Some "25.37.0-next"
104+
| "host", "ntp_mode" ->
105+
Some "25.37.0-next"
100106
| "host", "secure_boot" ->
101107
Some "25.31.0"
108+
| "host", "max_cstate" ->
109+
Some "25.37.0-next"
102110
| "host", "ssh_auto_mode" ->
103111
Some "25.27.0"
104112
| "host", "console_idle_timeout" ->
@@ -225,6 +233,22 @@ let prototyped_of_message = function
225233
Some "22.26.0"
226234
| "VTPM", "create" ->
227235
Some "22.26.0"
236+
| "host", "set_servertime" ->
237+
Some "25.37.0-next"
238+
| "host", "get_ntp_synchronized" ->
239+
Some "25.37.0-next"
240+
| "host", "list_timezones" ->
241+
Some "25.37.0-next"
242+
| "host", "set_timezone" ->
243+
Some "25.37.0-next"
244+
| "host", "get_ntp_servers_status" ->
245+
Some "25.37.0-next"
246+
| "host", "set_ntp_custom_servers" ->
247+
Some "25.37.0-next"
248+
| "host", "set_ntp_mode" ->
249+
Some "25.37.0-next"
250+
| "host", "set_max_cstate" ->
251+
Some "25.37.0-next"
228252
| "host", "update_firewalld_service_status" ->
229253
Some "25.34.0"
230254
| "host", "get_tracked_user_agents" ->

ocaml/idl/schematest.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let hash x = Digest.string x |> Digest.to_hex
33
(* BEWARE: if this changes, check that schema has been bumped accordingly in
44
ocaml/idl/datamodel_common.ml, usually schema_minor_vsn *)
55

6-
let last_known_schema_hash = "c72edb27945bceb074de3fa54381ddd4"
6+
let last_known_schema_hash = "a1fba7d2313940671df82c4d43b16b2e"
77

88
let current_schema_hash : string =
99
let open Datamodel_types in

0 commit comments

Comments
 (0)