File tree Expand file tree Collapse file tree 6 files changed +16
-2
lines changed Expand file tree Collapse file tree 6 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ let prototyped_of_field = function
137
137
Some " 23.18.0"
138
138
| "VM" , "actions__after_softreboot" ->
139
139
Some " 23.1.0"
140
+ | "pool" , "limit_console_sessions" ->
141
+ Some " 25.29.0"
140
142
| "pool" , "ha_reboot_vm_on_internal_shutdown" ->
141
143
Some " 25.16.0"
142
144
| "pool" , "license_server" ->
Original file line number Diff line number Diff line change @@ -2250,6 +2250,10 @@ let t =
2250
2250
" Indicates whether an HA-protected VM that is shut down from \
2251
2251
inside (not through the API) should be automatically rebooted \
2252
2252
when HA is enabled"
2253
+ ; field ~writer_roles: _R_POOL_OP ~qualifier: RW ~lifecycle: [] ~ty: Bool
2254
+ ~default_value: (Some (VBool false )) " limit_console_sessions"
2255
+ " Indicate whether the console concurrent limit is set for the pool \
2256
+ (false means no limit)"
2253
2257
]
2254
2258
)
2255
2259
()
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ let hash x = Digest.string x |> Digest.to_hex
3
3
(* BEWARE: if this changes, check that schema has been bumped accordingly in
4
4
ocaml/idl/datamodel_common.ml, usually schema_minor_vsn *)
5
5
6
- let last_known_schema_hash = " 7586cb039918e573594fc358e90b0f04 "
6
+ let last_known_schema_hash = " f546a0d01815608cbcf04cdb90c1be9f "
7
7
8
8
let current_schema_hash : string =
9
9
let open Datamodel_types in
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ let make_pool ~__context ~master ?(name_label = "") ?(name_description = "")
326
326
~ext_auth_cache_enabled: false ~ext_auth_cache_size: 50L
327
327
~ext_auth_cache_expiry: 300L ~update_sync_frequency ~update_sync_day
328
328
~update_sync_enabled ~recommendations ~license_server
329
- ~ha_reboot_vm_on_internal_shutdown ;
329
+ ~ha_reboot_vm_on_internal_shutdown ~limit_console_sessions: false ;
330
330
pool_ref
331
331
332
332
let default_sm_features =
Original file line number Diff line number Diff line change @@ -1595,6 +1595,13 @@ let pool_record rpc session_id pool =
1595
1595
~value: (safe_bool_of_string " ssh-auto-mode" value)
1596
1596
)
1597
1597
()
1598
+ ; make_field ~name: " limit-console-sessions"
1599
+ ~get: (fun () -> string_of_bool (x () ).API. pool_limit_console_sessions)
1600
+ ~set: (fun x ->
1601
+ Client.Pool. set_limit_console_sessions ~rpc ~session_id ~self: pool
1602
+ ~value: (bool_of_string x)
1603
+ )
1604
+ ()
1598
1605
]
1599
1606
}
1600
1607
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ let create_pool_record ~__context =
55
55
~ext_auth_max_threads: 1L ~ext_auth_cache_enabled: false
56
56
~ext_auth_cache_size: 50L ~ext_auth_cache_expiry: 300L ~recommendations: []
57
57
~license_server: [] ~ha_reboot_vm_on_internal_shutdown: true
58
+ ~limit_console_sessions: false
58
59
59
60
let set_master_ip ~__context =
60
61
let ip =
You can’t perform that action at this time.
0 commit comments