YaST2 Developers Documentation: novell-common

novell-common

modules/NovellUtilsLUM.ycp
Novell utility routines

This module has an unstable interface.

Imports

  • Address
  • IP
  • Map
  • NetworkDevices
  • Report

Global Functions

Local Functions

global ReplaceSubString (string text, string replace, string replacement) -> string

Function: ReplaceSubString(string text, string replace, string replacement)

Parameters:
text
replace
replacement
local GetAllStaticInterfaces () -> map

Function: map GetAllStaticInterfaces()

returns a map of all network interfaces with static IP addresses

The returned map is structued as follows:

global GetIPAddr () -> string

Function: global string GetIPAddr()

The original method is found above (GetIPAddrEth0) It was insufficient as it only returned the IP address associated with eth0

This updated function gets the IP address of the 1st interface with a static address

global MapIPAddrToDevice (string ip) -> string

Function: MapIPAddrToDevice(string ip)

Parameters:
ip
global Typeful2Typeless (string ndsName) -> string

Typeful2Typeless (string ndsName)

Parameters:
ndsName
global FindValueInRegistry (string key) -> string

Find a value in the Novell registry

Parameters:
key to find in the registry.
Return value:
registry value for key on success, nil string on failure or no value.
global ValidatePassword (string pw1, string pw2) -> boolean

Validate password

Parameters:
pw1
pw2
global IsSelectionInstalled (string selection_name) -> boolean

See if the specified product was installed during phase 1 of the install. This is how we determine if a product should show up in the proposal screen. The input parameter "selection_name" should match the name of the selection file for which information is required (e.g. novell-imanager, novell-ifolder2, X11, Linux_tools, etc.). The parameter "selection_name" is not case sensitive.

Parameters:
selection_name
global IsEdirectoryInstalledLocally () -> boolean

See if eDirectory is installed locally on this machine and is running.

global GetDefaultAndFallbackIPAddresses (string ldapIP) -> map

Determine what the default and fallback IP addresses should be for a product.

Parameters:
ldapIP
Info:

The following code was copied from inetd/src/routines.ycp It has been reformatted slightly to suit my tastes

global CheckForInstalledSoftware () -> boolean

CheckForInstalledSoftware()