YaST2 Developers Documentation: Configuration of dhcp-server

Configuration of dhcp-server

include/dhcp-server/widgets.ycp
Widgets

This module has an unstable interface.

Imports

  • CWM
  • CWMTsigKeys
  • DhcpServer
  • Hostname
  • IP
  • Label
  • LogView
  • Mode
  • Popup
  • SuSEFirewall
  • TablePopup

Global Functions

global commonTableEntryDelete (any opt_id, string key) -> boolean

Function for deleting entry from section Used for all (global, host, subnet) section due to the same location of data

Parameters:
opt_id any option id
key string option key
Return value:
true if was really deleted
global getTableContents (map descr) -> list

Create list of identifiers of etries that should be present in the table

Parameters:
descr map description of the table
Return value:
of identifiers of entries of the table
global id2key (map table, any id) -> string

Transform table entry id to option id

Parameters:
table map table description
id any entry id
Return value:
option key
global key2descr (string opt_key) -> map

Get the popup widget description map

Parameters:
opt_key string option key
Return value:
popup description map
global getOptionsTableWidget (list add_values) -> map<string,any>

Get map of widget

Parameters:
add_values list of values to be offered via the add button
Return value:
of widget
global confirmAbort () -> boolean

Ask for exit without saving

Return value:
event that should be handled, nil if user canceled the exit
global confirmAbortIfChanged () -> boolean

Check whether settings were changed and if yes, ask for exit without saving

Return value:
event that should be handled, nil if user canceled the exit
global dhcpEnabledOrDisabled (string id, map event) -> void

Enable or disable a widget according the current status of the service

Parameters:
id string widget id
event map event that caused storing process
global startInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global startStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
global startHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
global chrootInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global chrootStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
global chrootHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
global ldapInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global SetUseLdap (boolean use_ldap) -> void

Set the LDAP usage, reinitalize LDAP support

Parameters:
use_ldap boolean true if LDAP is to be used
global ldapHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
global OpenFirewallInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global OpenFirewallStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
global configTreeHandle (string id, map event) -> symbol

Handle function of the widget

Parameters:
id string widget id
event map event that caused storing process
Return value:
always nil
global configTreeInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global subnetInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global subnetStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
global idInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global idStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
global interfacesInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
global interfacesStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
global DynDnsButtonInit (string id) -> void

Initialize the widget

Parameters:
id any widget id
global DynDnsButtonHandle (string id, map event) -> symbol

Handle events of the widget

Parameters:
id string widget id
event map event that is handled
Return value:
for WS
global DDNSZonesHandle (string id, map event) -> symbol

Handle events of the widget

Parameters:
id string widget id
event map event that is handled
Return value:
for WS
global DDNSZonesInit (string id) -> void

Initialize the widget

Parameters:
id string widget id
global DNSZonesValidate (string id, map event) -> boolean

Validate the widget

Parameters:
id string widget id
event map event that is handled
Return value:
true if validation succeeded
global DDNSZonesStore (string id, map event) -> void

Store settings of the widget

Parameters:
id string widget id
event map event that caused storing process
global KeyFileBrowseButtonHandle (string id, map event) -> symbol

Handle events of the widget

Parameters:
id string widget id
event map event that is handled
Return value:
for WS
global EmptyOrIpValidate (string id, map event) -> boolean

Validate the widget

Parameters:
id string widget id
event map event that is handled
Return value:
true if validation succeeded
global InitWidgets () -> void

Initialize widgets Create description map and copy it into appropriate variable of the DhcpServer module