120. LanItems

120.1. Summary of Module Globals

List of Global Functions

List of Global Variables

  • Items - Hardware information

  • SysconfigDefaults - the defaults here are what sysconfig defaults to (as opposed to what a new interface gets, in @ref Select)

  • modified - Data was modified?

  • operation - Which operation is pending?

  • wl_wpa_eap - wl_wpa_eap aggregates the settings in a map for easier CWM access.

120.2. Global Functions

120.2.1. Commit

Commit pending operation

Return value

  • boolean - true if success

120.2.2. FindMatchingDevice

Find matching device Find a device, optionally with some predefined values

Function parameters

  • map interface

Return value

  • map - The map of the matching device.

120.2.3. FreeAliases

Return 10 free aliases

Function parameters

  • string type

  • integer num

Return value

  • list - of 10 free devices

120.2.4. FreeDevices

Return 10 free devices

Function parameters

  • string type

Return value

  • list - of 10 free devices

120.2.5. GetDefaultsForHW

must be in sync with @ref SetDefaultsForHW

Return value

  • map

120.2.6. GetModified

Function which returns if the settings were modified

Return value

  • boolean - settings were modified

120.2.7. GetModuleForInterface

Get the module configuration for the modules configured in the interface section

Function parameters

  • string ay_device

  • list<map> ay_modules

Return value

  • map - the module map with module name and options

120.2.8. InterfaceHasAliases

Check if the given device has any virtual alias.

Return value

  • boolean - true if there are some aliases

120.2.9. Modified

Data was modified?

Return value

  • boolean - true if modified

120.2.10. Overview

Create an overview table with all configured devices

Return value

  • list - table items

120.2.11. Select

Select the given device

Function parameters

  • string dev

Return value

  • boolean - true if success

120.2.12. SelectHW

Select the hardware component

Function parameters

  • integer which

Return value

  • void

120.2.13. SelectHWMap

Select the hardware component

Function parameters

  • map hardware

Return value

  • void

120.2.14. SetDefaultsForHW

must be in sync with @ref GetDefaultsForHW

Return value

  • void

120.2.15. SetDeviceVars

Set various device variables

Function parameters

  • map devmap

  • map defaults

Return value

  • void

120.2.16. SetModified

Function sets internal variable, which indicates, that any settings were modified, to "true"

Return value

  • void

120.2.17. UnsetModified

Function sets internal variable, which indicates, that any settings were modified, to "false"

Return value

  • void

120.3. Global Variables

120.3.1. Items

Hardware information

120.3.2. SysconfigDefaults

the defaults here are what sysconfig defaults to (as opposed to what a new interface gets, in @ref Select)

120.3.3. modified

Data was modified?

120.3.4. operation

Which operation is pending?

120.3.5. wl_wpa_eap

wl_wpa_eap aggregates the settings in a map for easier CWM access.

wpa_eap
 WPA_EAP_MODE: string ("TTLS" "PEAP" or "TLS")
 WPA_EAP_IDENTITY: string
 WPA_EAP_PASSWORD: string (for TTLS and PEAP)
 WPA_EAP_ANONID: string (for TTLS and PEAP)
 WPA_EAP_CLIENT_CERT: string (for TLS, file name)
 WPA_EAP_CLIENT_KEY: string (for TLS, file name)
 WPA_EAP_CLIENT_KEY_PASSWORD: string (for TLS)
 WPA_EAP_CA_CERT: string (file name)
 WPA_EAP_AUTH: string ("", "MD5", "GTC", "CHAP"*, "PAP"*, "MSCHAP"*, "MSCHAPV2") (*: TTLS only)
 WPA_EAP_PEAP_VERSION: string ("", "0", "1")

120.4. Module Requirements

120.4.1. Module Imports

  • NetworkConfig
  • NetworkInterfaces
  • NetworkStorage
  • ProductFeatures

120.4.2. Module Includes

  • network/complex.ycp
  • network/hardware.ycp
  • network/routines.ycp