@@ -2579,11 +2579,10 @@ let host_ntp_mode =
25792579 Enum
25802580 ( " host_ntp_mode"
25812581 , [
2582- (" ntp_mode_dhcp" , " Using NTP servers assigned by DHCP to sync time" )
2583- ; ( " ntp_mode_custom"
2584- , " Using custom NTP servers configured by user to sync time"
2585- )
2586- ; (" ntp_mode_default" , " Using default NTP servers to sync time" )
2582+ (" DHCP" , " Using NTP servers assigned by DHCP to sync time" )
2583+ ; (" Custom" , " Using custom NTP servers configured by user to sync time" )
2584+ ; (" Factory" , " Using built-in NTP servers to sync time" )
2585+ ; (" Disabled" , " NTP is disabled on the host" )
25872586 ]
25882587 )
25892588
@@ -2606,16 +2605,6 @@ let set_ntp_custom_servers =
26062605 ]
26072606 ~allowed_roles: _R_POOL_OP ()
26082607
2609- let disable_ntp =
2610- call ~name: " disable_ntp" ~lifecycle: [] ~doc: " Disable NTP on the host"
2611- ~params: [(Ref _host, " self" , " The host" )]
2612- ~allowed_roles: _R_POOL_OP ()
2613-
2614- let enable_ntp =
2615- call ~name: " enable_ntp" ~lifecycle: [] ~doc: " Enable NTP on the host"
2616- ~params: [(Ref _host, " self" , " The host" )]
2617- ~allowed_roles: _R_POOL_OP ()
2618-
26192608let get_ntp_servers_status =
26202609 call ~name: " get_ntp_servers_status" ~lifecycle: []
26212610 ~doc: " Get the NTP servers status on the host"
@@ -2822,8 +2811,6 @@ let t =
28222811 ; set_max_cstate
28232812 ; set_ntp_mode
28242813 ; set_ntp_custom_servers
2825- ; disable_ntp
2826- ; enable_ntp
28272814 ; get_ntp_servers_status
28282815 ; set_timezone
28292816 ; list_timezones
@@ -3297,15 +3284,12 @@ let t =
32973284 ~default_value: (Some (VBool false )) " secure_boot"
32983285 " Whether the host has booted in secure boot mode"
32993286 ; field ~qualifier: DynamicRO ~lifecycle: [] ~ty: host_ntp_mode
3300- ~default_value: (Some (VEnum " ntp_mode_dhcp " )) " ntp_mode"
3287+ ~default_value: (Some (VEnum " Factory " )) " ntp_mode"
33013288 " Indicates NTP servers are assigned by DHCP, or configured by \
3302- user, or the default servers"
3289+ user, or the factory servers, or NTP is disabled "
33033290 ; field ~qualifier: DynamicRO ~lifecycle: [] ~ty: (Set String )
33043291 ~default_value: (Some (VSet [] )) " ntp_custom_servers"
3305- " The set of NTP servers configured for the host"
3306- ; field ~qualifier: DynamicRO ~lifecycle: [] ~ty: Bool
3307- ~default_value: (Some (VBool false )) " ntp_enabled"
3308- " Reflects whether NTP is enabled on the host"
3292+ " Custom NTP servers configured by users, used in Custom NTP mode"
33093293 ; field ~qualifier: DynamicRO ~lifecycle: [] ~ty: String
33103294 ~default_value: (Some (VString " UTC" )) " timezone"
33113295 " The time zone identifier as defined in the IANA Time Zone Database"
0 commit comments