@@ -175,7 +175,7 @@ let make_host ~__context ?(uuid = make_uuid ()) ?(name_label = "host")
175175 ?(last_software_update = Date. epoch) ?(last_update_hash = " " )
176176 ?(ssh_enabled = true ) ?(ssh_enabled_timeout = 0L ) ?(ssh_expiry = Date. epoch)
177177 ?(console_idle_timeout = 0L ) ?(ssh_auto_mode = false ) ?(secure_boot = false )
178- () =
178+ ?( https_only = false ) () =
179179 let host =
180180 Xapi_host. create ~__context ~uuid ~name_label ~name_description ~hostname
181181 ~address ~external_auth_type ~external_auth_service_name
@@ -184,6 +184,7 @@ let make_host ~__context ?(uuid = make_uuid ()) ?(name_label = "host")
184184 ~last_update_hash ~ssh_enabled ~ssh_enabled_timeout ~ssh_expiry
185185 ~console_idle_timeout ~ssh_auto_mode ~secure_boot
186186 ~software_version: (Xapi_globs. software_version () )
187+ ~https_only
187188 in
188189 Db.Host. set_cpu_info ~__context ~self: host ~value: default_cpu_info ;
189190 host
@@ -194,15 +195,14 @@ let make_host2 ~__context ?(ref = Ref.make ()) ?(uuid = make_uuid ())
194195 ?(external_auth_type = " " ) ?(external_auth_service_name = " " )
195196 ?(external_auth_configuration = [] ) ?(license_params = [] )
196197 ?(edition = " free" ) ?(license_server = [] ) ?(local_cache_sr = Ref. null)
197- ?(chipset_info = [] ) ?(ssl_legacy = false ) () =
198+ ?(chipset_info = [] ) ?(ssl_legacy = false ) ?( https_only = false ) () =
198199 let pool = Helpers. get_pool ~__context in
199200 let tls_verification_enabled =
200201 Db.Pool. get_tls_verification_enabled ~__context ~self: pool
201202 in
202203 Db.Host. create ~__context ~ref ~current_operations: [] ~allowed_operations: []
203204 ~software_version: (Xapi_globs. software_version () )
204- ~https_only: false ~enabled: false
205- ~a PI_version_major:Datamodel_common. api_version_major
205+ ~enabled: false ~a PI_version_major:Datamodel_common. api_version_major
206206 ~a PI_version_minor:Datamodel_common. api_version_minor
207207 ~a PI_version_vendor:Datamodel_common. api_version_vendor
208208 ~a PI_version_vendor_implementation:
@@ -224,7 +224,7 @@ let make_host2 ~__context ?(ref = Ref.make ()) ?(uuid = make_uuid ())
224224 ~pending_guidances_recommended: [] ~pending_guidances_full: []
225225 ~last_update_hash: " " ~ssh_enabled: true ~ssh_enabled_timeout: 0L
226226 ~ssh_expiry: Date. epoch ~console_idle_timeout: 0L ~ssh_auto_mode: false
227- ~secure_boot: false ;
227+ ~secure_boot: false ~https_only ;
228228 ref
229229
230230let make_pif ~__context ~network ~host ?(device = " eth0" )
0 commit comments