Network configuration |
include/network/complex.ycp |
Summary and overview functions | |
|
|
This module has an unstable interface. |
Used for initializing the description variable (ifcfg[NAME]) The code is mostly moved from BuildSummaryDevs Take the NAME field from ifcfg If empty, identify the hardware and use its data
- Parameters:
-
devtype devnum devmap Hardware
Build textual summary
- Parameters:
-
Devs Hardware split split configured and unconfigured? link add a link to configure the device (only if !split)
- Return value:
-
[ configured, unconfigured ] if split, [ summary, links ] otherwise
Build textual summary
- Parameters:
-
devregex Hardware split split configured and unconfigured? link add a link to configure the device (only if !split)
- Return value:
-
[ configured, unconfigured ] if split, [ summary, links ] otherwise
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
Return a human readable hardware name for device with given id
- Parameters:
-
Hardware hardware map id id-..., bus-...-..., or unique
- Return value:
-
hardware name
Get aprovider name from the provider map
- Parameters:
-
provider identifier
- Return value:
-
provider name
- Example
-
ProviderName("tonline") -> "T-Online" / define string ProviderName(string provider) { import "Provider"; if(provider == nil || provider == "") return ""; Provider::Select(provider); string nam = Provider::Current["PROVIDER"]:provider; if(nam == nil || nam == "") return provider; return nam;
Return the device protocol or IP address in case of static config Or indicate that NetworkManager takes over.
- Parameters:
-
devmap device map
- Return value:
-
textual device protocol
Create overview table contents (weird interface to accomodate transition from Wizard_hw to WizardHW) List of terms `item (`id (id), ...)
- Parameters:
-
Devs Hardware
- Return value:
-
table items
Create overview table contents
- Parameters:
-
devregex Hardware
- Return value:
-
table items
Convert the output of BuildSummary for inclusion in the unified device list. Called by BuildUnconfigured and BuildUnconfiguredDevs.
- Parameters:
-
sum output of BuildSumary class netcard modem dsl, isdn too; determines how to arrange output, yuck
- Return value:
-
[ $[id, table_descr, rich descr] ]
- Parameters:
-
Devs configured devices class netcard modem dsl, isdn too Hardware the detected hardware
- Return value:
-
[ $[id, table_descr, rich descr] ]
- Parameters:
-
class netcard modem dsl. not isdn because it does not use NetworkDevices (#103073) Hardware the detected hardware
- Return value:
-
[ $[id, table_descr, rich descr] ]