YaST2 Developers Documentation: Network configuration



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

  • Popup
  • Provider
  • Summary

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:
Hardware
id
Return value:
hardware name

local ProviderName (string provider) -> string

Get aprovider name from the provider map

Parameters:
provider identifier
Return value:
provider name
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:
text wth device status

local DeviceProtocol (map devmap) -> string

Return the device protocol or IP address in case of static config

Parameters:
devmap device map
Return value:
textual device protocol

local BuildOverview (list<map> Hardware) -> list

Create overview table contents

Parameters:
Hardware
Return value:
table items

YaST2 Developers Documentation