122. LanItems

122.1. Authors

    122.2. Summary of Module Globals

    List of Global Functions

    • Commit - Commit pending operation

    • FindMatchingDevice - Find matching device Find a device, optionally with some predefined values

    • FreeAliases - Return 10 free aliases

    • FreeDevices - Return 10 free devices

    • GetDefaultsForHW - must be in sync with @ref SetDefaultsForHW

    • GetModified - Function which returns if the settings were modified

    • GetModuleForInterface - Get the module configuration for the modules configured in the interface section

    • InterfaceHasAliases - Check if the given device has any virtual alias.

    • Modified - Data was modified?

    • Overview - Create an overview table with all configured devices

    • Select - Select the given device

    • SelectHW - Select the hardware component

    • SelectHWMap - Select the hardware component

    • SetDefaultsForHW - must be in sync with @ref GetDefaultsForHW

    • SetDeviceVars - Set various device variables

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

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

    • isCurrentDHCP - Check if currently edited device gets its IP address from DHCP (v4, v6 or both)

    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.

    122.3. Global Functions

    122.3.1. Commit

    Commit pending operation

    Return value

    • boolean - true if success

    122.3.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.

    122.3.3. FreeAliases

    Return 10 free aliases

    Function parameters

    • string type

    • integer num

    Return value

    • list - of 10 free devices

    122.3.4. FreeDevices

    Return 10 free devices

    Function parameters

    • string type

    Return value

    • list - of 10 free devices

    122.3.5. GetDefaultsForHW

    must be in sync with @ref SetDefaultsForHW

    Return value

    • map

    122.3.6. GetModified

    Function which returns if the settings were modified

    Return value

    • boolean - settings were modified

    122.3.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

    122.3.8. InterfaceHasAliases

    Check if the given device has any virtual alias.

    Return value

    • boolean - true if there are some aliases

    122.3.9. Modified

    Data was modified?

    Return value

    • boolean - true if modified

    122.3.10. Overview

    Create an overview table with all configured devices

    Return value

    • list - table items

    122.3.11. Select

    Select the given device

    Function parameters

    • string dev

    Return value

    • boolean - true if success

    122.3.12. SelectHW

    Select the hardware component

    Function parameters

    • integer which

    Return value

    • void

    122.3.13. SelectHWMap

    Select the hardware component

    Function parameters

    • map hardware

    Return value

    • void

    122.3.14. SetDefaultsForHW

    must be in sync with @ref GetDefaultsForHW

    Return value

    • void

    122.3.15. SetDeviceVars

    Set various device variables

    Function parameters

    • map devmap

    • map defaults

    Return value

    • void

    122.3.16. SetModified

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

    Return value

    • void

    122.3.17. UnsetModified

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

    Return value

    • void

    122.3.18. isCurrentDHCP

    Check if currently edited device gets its IP address from DHCP (v4, v6 or both)

    Return value

    • boolean - true if it is

    122.4. Global Variables

    122.4.1. Items

    Hardware information

    See also:

    • ReadHardware

    122.4.2. SysconfigDefaults

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

    122.4.3. modified

    Data was modified?

    122.4.4. operation

    Which operation is pending?

    122.4.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")

    122.5. Module Requirements

    122.5.1. Module Imports

    • NetworkConfig
    • NetworkInterfaces
    • NetworkStorage
    • ProductFeatures

    122.5.2. Module Includes

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