YaST2 Developers Documentation: Network configuration

Network configuration

modules/Internet.ycp
Internet connection and YOU during the installation

This module has an unstable interface.

Imports

  • Map
  • NetworkDevices
  • NetworkService
  • Provider
  • Service

Includes

  • network/routines.ycp

Global Variables

Global Functions

Local Variables

Local Functions

global do_test -> boolean

Flag to remember if user wants to run internet test

global suse_register -> boolean

Flag to remember if user wants to run suse register

global do_you -> boolean

Flag to remember if you should be started

local devices -> list<string>

cache for GetDevices

global device -> string

Values for selected connection.

local Reset () -> void

Reset values.

global SetDevice (string dev) -> void

Set device from argument as default network device

Parameters:
dev
global GetDevices () -> list<string>

Used if NetworkDevices cannot find anything (usually because NM runs) Calls ip

Return value:
eg. ["eth0", "eth1"]
global FindFastest () -> boolean

Find the fastest connection to the Internet

Return value:
true if a "good" connection was found
global Start (string log) -> boolean

Start the fastest interface

Parameters:
log file for the commands output
Return value:
true if successful started
global Stop (string log) -> boolean

Stop the fastest interface

Parameters:
log file for the commands output
Return value:
true if successful stopped
global Status () -> boolean

Status of the fastest interface

Return value:
true if interface is up (which is not equal to connected)
global Connected () -> boolean

Test if the interface is connected

Return value:
true if connected
global SetDemand (boolean demand) -> void

Set dial-on-demand

Parameters:
demand true if dial-on-demand should be set