
functions
files
intro
|
|
Network configuration |
include/network/complex.ycp |
Summary and overview functions |
|
|
All config settings are stored in a global variable Devs.
All hardware settings are stored in a global variable Hardware.
Deleted devices are in the global list DELETED.
Imports
Includes
- network/routines.ycp
- network/summary.ycp
Local Functions
|
|
|
local BuildSummary (list<map> Hardware, boolean split) -> list<any>
|
|
Build textual summary
- Parameters:
Hardware |
|
split |
split configured and unconfigured? |
- Return value:
|
[ configured, unconfigured ] if split, [ summary ] otherwise |
local CheckEmptyName (string devtype, string hwname) -> string
|
|
Fill in sensible string if the name is empty
- Parameters:
devtype |
device type |
hwname |
device name |
- Return value:
|
hwname if not empty, "Unknown device" otherwise |
local HardwareName (list<map> Hardware, string id) -> string
|
|
Return a hardware name for devices with given unique number
- Parameters:
- Return value:
local ProviderName (string provider) -> string
|
|
Get aprovider name from the provider map
- Parameters:
- Return value:
- Example:
-
ProviderName("tonline") -> "T-Online" |
local DeviceStatus (string devtype, string devnum, map devmap) -> string
|
|
Return the textual device status
- Parameters:
devtype |
device type |
devnum |
device number |
devmap |
map with devices settings |
- Return value:
local DeviceProtocol (map devmap) -> string
|
|
Return the device protocol or IP address in case of static config
- Parameters:
- Return value:
local BuildOverview (list<map> Hardware) -> list
|
|
Create overview table contents
- Parameters:
- Return value:
|