YaST2 Developers Documentation: Network configuration

Network configuration

include/network/lan/address.ycp
Network card adresss configuration dialogs
  • Michal Svec

This module has an unstable interface.

Imports

  • Arch
  • CWM
  • CWMTab
  • DNS
  • Host
  • Hostname
  • IP
  • Label
  • Lan
  • Map
  • NetHwDetection
  • Netmask
  • NetworkInterfaces
  • NetworkService
  • Popup
  • ProductFeatures
  • Routing
  • String
  • SuSEFirewall4Network
  • Wizard

Includes

  • network/complex.ycp
  • network/lan/bridge.ycp
  • network/lan/hardware.ycp
  • network/lan/help.ycp
  • network/lan/virtual.ycp
  • network/summary.ycp
  • network/widgets.ycp

Local Functions

local ChangeDefaults () -> symbol

obsoleted by GetDefaultsForHW

Return value:
`next
local ValueProp (string key) -> symbol

`RadioButtonGroup uses CurrentButton instead of Value, grrr

Parameters:
key widget id
Return value:
what property to ask for to get the widget value
local my2debug (string class, string msg) -> void

Debug messages configurable at runtime

Parameters:
class debug class
msg message to log
local InitAddrWidget (string key) -> void

Default function to init the value of a widget. Used for push buttons.

Parameters:
key id of the widget
local StoreAddrWidget (string key, map event) -> void

Default function to store the value of a widget.

Parameters:
key id of the widget
event the event being handled
local StoreBridge (string key, map event) -> void

Default function to store the value of devices attached to bridge (BRIDGE_PORTS).

Parameters:
key id of the widget
event
local InitVLANSlave (string key) -> void

Default function to init the value of slave ETHERDEVICE box.

Parameters:
key id of the widget
local StoreVLANSlave (string key, map event) -> void

Default function to store the value of ETHERDEVICE devices box.

Parameters:
key id of the widget
event
local InitSlave (string key) -> void

Default function to init the value of slave devices box.

Parameters:
key id of the widget
local StoreSlave (string key, map event) -> void

Default function to store the value of slave devices box.

Parameters:
key id of the widget
event
local initBootProto (string key) -> void

Initialize a RadioButtonGroup Group called FOO has buttons FOO_bar FOO_qux and values bar qux

Parameters:
key id of the widget
local storeBootProto (string key, map event) -> void

Store a RadioButtonGroup Group called FOO has buttons FOO_bar FOO_qux and values bar qux

Parameters:
key id of the widget
event the event being handled
local HandleButton (string key, map event) -> symbol

Remap the buttons to their Wizard Sequencer values

Parameters:
key the widget receiving the event
event the event being handled
Return value:
nil so that the dialog loops on
local ValidateAddrIP (string key, map event) -> boolean

Validator for IP adresses used for IPADDR and REMOTEIP

Parameters:
key the widget being validated
event the event being handled
Return value:
whether valid
local ValidateNetmask (string key, map event) -> boolean

Validator for network masks adresses

Parameters:
key the widget being validated
event the event being handled
Return value:
whether valid
local ValidateIfcfgType (string key, map event) -> boolean

Validator for ifcfg names

Parameters:
key the widget being validated
event the event being handled
Return value:
whether valid
local NeedToAssignFwZone (map event) -> boolean

If the traffic would be blocked, ask the user if he wants to change it

Parameters:
event the event being handled
Return value:
change it?
local ValidateBootproto (string key, map event) -> boolean

Validator for network masks adresses

Parameters:
key the widget being validated
event the event being handled
Return value:
whether valid
local InitFwZone (string key) -> void

Initialize value of firewall zone widget (disables it when SuSEFirewall is not installed)

Parameters:
key id of the widget
local BuildTypesListCWM (list<string> types) -> list< list<string> >

Parameters:
types network card types
Return value:
their descriptions for CWM
local AddressDialog () -> any

Dialog for setting up IP address

Return value:
dialog result