94. Lan

Network card data

94.1. Summary of Module Globals

List of Global Functions

  • Add - Add a new device

  • AnyDHCPDevice - Check if any device except the current one is configured with DHCP. The current one is checked separately because there may be uncommitted changes. (#17391)

  • AutoPackages -

  • Autoinstall - Create a configuration for autoyast

  • Commit - Commit pending operation

  • Delete - Delete the given device

  • Edit - Edit the given device

  • Export - Export data

  • FreeAliases - Return 10 free aliases

  • FreeDevices - Return 10 free devices

  • GetModified - Function which returns if the settings were modified

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

  • Import - Import data

  • Modified - Data was modified?

  • Overview - Create an overview table with all configured devices

  • Packages -

  • Propose - Propose a configuration

  • Read - Read all network settings from the SCR

  • Select - Select the given device

  • SelectHW - Select the hardware component

  • SetDefaultsForHW - must be in sync with @ref GetDefaultsForHW

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

  • Summary - Create a textual summary and a list of unconfigured devices

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

  • Write - Update the SCR according to network settings

  • WriteOnly - Only write configuration without starting any init scripts and SuSEconfig

List of Global Variables

  • AbortFunction - Abort function return boolean return true if abort

  • hotplug - Hotplug type ("" if not hot pluggable)

  • operation - Which operation is pending?

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

94.2. Global Functions

94.2.1. Add

Add a new device

Return value

  • boolean - true if success

94.2.2. AnyDHCPDevice

Check if any device except the current one is configured with DHCP. The current one is checked separately because there may be uncommitted changes. (#17391)

Return value

  • boolean - true if any DHCP device except the current one is configured

94.2.3. AutoPackages

Return value

  • map - of packages needed when writing the config in autoinst mode

94.2.4. Autoinstall

Create a configuration for autoyast

Return value

  • boolean - true if something was proposed

94.2.5. Commit

Commit pending operation

Return value

  • boolean - true if success

94.2.6. Delete

Delete the given device

Function parameters

  • string name

Return value

  • boolean - true if success

94.2.7. Edit

Edit the given device

Function parameters

  • string name

Return value

  • boolean - true if success

94.2.8. Export

Export data

Return value

  • map - dumped settings (later acceptable by Import())

94.2.9. FreeAliases

Return 10 free aliases

Function parameters

  • string type

  • integer num

Return value

  • list - of 10 free devices

94.2.10. FreeDevices

Return 10 free devices

Function parameters

  • string type

Return value

  • list - of 10 free devices

94.2.11. GetModified

Function which returns if the settings were modified

Return value

  • boolean - settings were modified

94.2.12. HasAliases

Check if the given device has any virtual alias.

Function parameters

  • string dev

Return value

  • boolean - true if there are some aliases

94.2.13. Import

Import data

Function parameters

  • map settings

Return value

  • boolean - true on success

94.2.14. Modified

Data was modified?

Return value

  • boolean - true if modified

94.2.15. Overview

Create an overview table with all configured devices

Return value

  • list - table items

94.2.16. Packages

Return value

  • list<string> - of packages needed when writing the config

94.2.17. Propose

Propose a configuration

Return value

  • boolean - true if something was proposed

94.2.18. Read

Read all network settings from the SCR

Return value

  • boolean - true on success

94.2.19. Select

Select the given device

Function parameters

  • string dev

Return value

  • boolean - true if success

94.2.20. SelectHW

Select the hardware component

Function parameters

  • integer which

Return value

  • void

94.2.21. SetDefaultsForHW

must be in sync with @ref GetDefaultsForHW

Return value

  • void

94.2.22. SetModified

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

Return value

  • void

94.2.23. Summary

Create a textual summary and a list of unconfigured devices

Function parameters

  • string mode

Return value

  • list - summary of the current configuration

94.2.24. UnsetModified

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

Return value

  • void

94.2.25. Write

Update the SCR according to network settings

Return value

  • boolean - true on success

94.2.26. WriteOnly

Only write configuration without starting any init scripts and SuSEconfig

Return value

  • boolean - true on success

94.3. Global Variables

94.3.1. AbortFunction

Abort function return boolean return true if abort

94.3.2. hotplug

Hotplug type ("" if not hot pluggable)

94.3.3. operation

Which operation is pending?

94.3.4. wl_wpa_eap

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

wpa_eap
 WPA_EAP_IDENTITY: string
 WPA_EAP_PASSWORD: string
 WPA_EAP_CLIENT_CERT: string (file name)
 WPA_EAP_CA_CERT: string (file name)

94.4. Module Requirements

94.4.1. Module Imports

  • Arch
  • DNS
  • Detection
  • Host
  • Hostname
  • IP
  • Map
  • Mode
  • NetworkConfig
  • NetworkDevices
  • NetworkModules
  • ProductFeatures
  • Progress
  • Routing
  • Service
  • String
  • SuSEFirewall4Network
  • Summary

94.4.2. Module Includes

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