
functions
files
intro
|
|
Network configuration |
include/network/complex.ycp |
Summary and overview functions |
|
|
All config settings are stored in a global variable Devices.
All hardware settings are stored in a global variable Hardware.
Deleted devices are in the global list DELETED.
Imports
Local Functions
- BuildTypesList (list<string> types, string cur)
- DeviceType (string type)
- OverviewTable (term header, list contents)
- OverviewTableContents (string caption, term header, list contents, boolean first)
- OverviewTableDouble (string caption1, term header1, list contents1, string caption2, term header2, list contents2)
|
|
|
local DeviceType (string type) -> string
|
|
Return textual device type
- Parameters:
- Return value:
|
textual form of device type |
- Example:
-
DeviceType("eth") -> "Ethernet" |
local BuildTypesList (list<string> types, string cur) -> list<term>
|
|
Create list of Table items
- Parameters:
types |
list of types |
cur |
current type |
- Return value:
local OverviewTableContents (string caption, term header, list contents, boolean first) -> term
|
|
Create table widget for the overview screens with correct spacings
- Parameters:
caption |
table caption |
header |
table header |
contents |
table contents |
first |
table is first of the two tables |
- Return value:
local OverviewTable (term header, list contents) -> term
|
|
Create table widget for the overview screens
- Parameters:
header |
table header |
contents |
table contents |
- Return value:
local OverviewTableDouble (string caption1, term header1, list contents1, string caption2, term header2, list contents2) -> term
|
|
Create two table widgets for the overview screens
- Parameters:
caption1 |
first table caption |
header1 |
first table header |
contents1 |
first table contents |
caption2 |
second table caption |
header2 |
second table header |
contents2 |
second table contents |
- Return value:
|