
functions
files
intro
|
|
Configuration of dhcp-server |
include/dhcp-server/widgets.ycp |
Widgets |
|
|
Imports
- CWM
- DhcpServer
- Hostname
- IP
- Label
- LogView
- Popup
- TablePopup
Global Functions
- DDNSZonesHandle (string id, map event)
- DDNSZonesInit (string id)
- DDNSZonesStore (string id, map event)
- DNSZonesValidate (string id, map event)
- DynDnsButtonHandle (string id, map event)
- DynDnsButtonInit (string id)
- EmptyOrIpValidate (string id, map event)
- FirewallInit (string id)
- FirewallStore (string id, map event)
- InitWidgets ()
- KeyFileBrowseButtonHandle (string id, map event)
- TsigKeysHandle (string id, map event)
- TsigKeysInit (string id)
- TsigKeysStore (string id, map event)
- chrootHandle (string id, map event)
- chrootInit (string id)
- chrootStore (string id, map event)
- commonTableEntryDelete (any opt_id, string key)
- configTreeHandle (string id, map event)
- configTreeInit (string id)
- confirmAbort ()
- confirmAbortIfChanged ()
- dhcpEnabledOrDisabled (string id, map event)
- getOptionsTableWidget (list add_values)
- getTableContents (map descr)
- id2key (map table, any id)
- idInit (string id)
- idStore (string id, map event)
- interfacesInit (string id)
- interfacesStore (string id, map event)
- key2descr (string opt_key)
- ldapHandle (string id, map event)
- ldapInit (string id)
- ldapStore (string id, map event)
- startHandle (string id, map event)
- startInit (string id)
- startStore (string id, map event)
- subnetInit (string id)
- subnetStore (string id, map event)
Local 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:
global key2descr (string opt_key) -> map
|
|
Get the popup widget description map
- Parameters:
opt_key |
string option key |
- Return value:
global getOptionsTableWidget (list add_values) -> map
|
|
Get map of widget
- Parameters:
add_values |
list of values to be offered via the add button |
- Return value:
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:
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:
global chrootInit (string id) -> void
|
|
Initialize the widget
- Parameters:
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:
global ldapInit (string id) -> void
|
|
Initialize the widget
- Parameters:
global ldapStore (string id, map event) -> void
|
|
Store settings of the widget
- Parameters:
id |
string widget id |
event |
map event that caused storing process |
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:
global FirewallInit (string id) -> void
|
|
Initialize the widget
- Parameters:
global FirewallStore (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:
global configTreeInit (string id) -> void
|
|
Initialize the widget
- Parameters:
global subnetInit (string id) -> void
|
|
Initialize the widget
- Parameters:
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:
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:
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:
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:
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:
global DDNSZonesInit (string id) -> void
|
|
Initialize the widget
- Parameters:
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:
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 |
local TsigKeysRedraw () -> void
|
|
Redraw table of TSIG keys
global TsigKeysInit (string id) -> void
|
|
Initialize the widget
- Parameters:
global TsigKeysHandle (string id, map event) -> symbol
|
|
Handle function of the widget
- Parameters:
id |
string widget id |
event |
map event that caused storing process |
- Return value:
global TsigKeysStore (string id, map event) -> void
|
|
Store settings of the widget
- Parameters:
id |
string widget id |
event |
map event that caused storing process |
local getTsigKeysWidget () -> map
|
|
Het widget description map
- Return value:
global InitWidgets () -> void
|
|
Initialize widgets
Create description map and copy it into appropriate variable of the
DhcpServer module
|