YaST2 Developers Documentation: Configuration of ntp-client

Configuration of ntp-client

include/ntp-client/misc.ycp
Miscelanous functions for configuration of ntp-client.
  • Jiri Srain

This module has an unstable interface.

Imports

  • CWMFirewallInterfaces
  • IP
  • NtpClient
  • Popup
  • Progress
  • Service

Includes

  • ntp-client/clocktypes.ycp

Local Functions

local reallyExit () -> boolean

Ask user if exit without saving

Return value:
true if exit
local restartNtpDaemon () -> void

Restart the NTP daemon service

local silentWrite () -> void

Write the NTP settings without displaying progress

local string2opts (string options_string, list<string> with_param, list<string> without_param) -> map

Parse string to map of options

Parameters:
options_string string of options
with_param a list of options that must have a parameter
without_param a list of options that don't have any parameter
Return value:
options as a map
local opts2string (map<string,any> options, string other) -> string

Create options string from a map

Parameters:
options a map options represented as a map
other string other options that were set as string
Return value:
options represented as a string
local ReallyAbort () -> boolean

If modified, ask for confirmation

Return value:
true if abort is confirmed
local PollAbort () -> boolean

Check for pending Abort press

Return value:
true if pending abort
local getClockType (string address) -> integer

Get the type of the clock from the address

Parameters:
address string the clock identification in the IP address form
Return value:
the clock type
local setClockType (string address, integer clock_type) -> string

Set the clock type into an IP address

Parameters:
address string the IP address to patch the clock number into
clock_type integer the clock type to be set
Return value:
IP address with clock type set correctly
local getClockUnitNumber (string address) -> integer

Get the unit number of the clock from the address

Parameters:
address string the clock identification in the IP address form
Return value:
the unit number
local setClockUnitNumber (string address, integer unit_number) -> string

Set the clock unit number into an IP address

Parameters:
address string the IP address to patch the clock number into
unit_number integer the unit number to be set
Return value:
IP address with unit number set correctly
local getClockTypesCombo () -> list<list<string> >

Get entries for the clock type combo box

Return value:
of items for the combo box
local proposeInterfacesToAllowAccess () -> list<string>

Propose the interface to be allowed for access in firewall At the moment not used