YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • String

Global Variables

Global Functions

Local Variables

Local Functions

Info:

File: modules/NetworkConfig.ycp Package: Network configuration Summary: Network configuration data Authors: Michal Svec

$Id$

global Config -> map

Basic network settings (/etc/sysconfig/network/config)

global DHCP -> map

DHCP settings (/etc/sysconfig/network/dhcp)

local Orig_Config -> map

Basic network settings

local Orig_DHCP -> map

DHCP settings

local initialized -> boolean

True if data are already read

local ReadConfig (path config) -> map

Read sysconfig file. Uses metadata to distinguish between booleans, integers, and strings

Parameters:
config sysconfig file SCR path
Return value:
sysconfig file contents
local WriteConfig (path config, map data) -> boolean

Write sysconfig file

Parameters:
config sysconfig file SCR path
data sysconfig file contents
Return value:
true if success
global Modified () -> boolean

Data was modified?

Return value:
true if modified
global Read () -> boolean

Read all network settings from the SCR

Return value:
true on success
global Write () -> boolean

Update the SCR according to network settings

Return value:
true on success
global Import (map settings) -> boolean

Import data

Parameters:
settings settings to be imported
Return value:
true on success
global Export () -> map

Export data

Return value:
dumped settings (later acceptable by Import())