YaST2 Developers Documentation: Network configuration

Network configuration

modules/ISDN.ycp
ISDN data
Representation of the configuration of ISDN. Input and output routines.

Imports

  • NetworkDevices
  • Progress
  • Provider
  • SuSEFirewall4Network
  • Summary

Includes

  • network/complex.ycp
  • network/devices.ycp
  • network/hardware.ycp
  • network/isdn/config.ycp
  • network/isdn/routines.ycp
  • network/routines.ycp
  • network/runtime.ycp

Global Variables

Global Functions

Local Variables

Local Functions

global hw_device -> map

hold current device settings

handled items are line specific PROTOCOL D-channel protocol AREACODE international area code DIALPREFIX dialprefixfor PBX setups hw specific PARA_IO IO address for legacy ISA PARA_MEMBASE memory base address for legacy ISA PARA_IRQ IRQ number for legacy ISA PARA_TYPE card type PARA_SUBTYPE card sub type NAME full card name DRIVER driver module name STARTMODE "auto"|"manual"|"hotplug" DEBUG debuglevel UNIQUE unique hw id

global ISDNCDB -> map

ISDN database based on CDB

map with two keys, of maps: Cards: map, keyed by integers, of maps: CardID: integer (the key) VendorRef: integer bus: string (ISA) class: string (ISDN Single/Multiple Basic Rate) device: integer driver: list of driver maps features: integer lines: integer longname: string name: string revision: integer subdevice: integer subvendor: integer vendor: integer Vendors: map, keyed by integers, of maps: VendorID: integer (the key) name: string refcnt: integer shortname: string

global interface -> map

hold current interface settings

handled items are IPADDR local IP address REMOTE_ADDR remote IP address DEFAULTROUTE default route yes/no DYNAMICIP dynamic IP assignment yes/no PROTOCOL encapsulation "rawip" | "syncppp" MSN own phone number CHARGEHUP try to hangup on idle just before next charge CALLBACK callback mode CBDELAY callback delay STARTMODE auto | manual | hotplug USERCONTROL controllable bt user yes/no MULTILINK channel bundling yes/no PROVIDER default provider filename IPPPD_OPTIONS additional ipppd options

global have_dsl -> boolean

Flag for Fritz!card DSL configuration

global operation -> symbol

Which operation is pending?

global skip -> boolean

If the interface or provider configuration is skipped

local Hardware -> list<map>

Hardware information

See
ReadHardware
local Devices -> map<string,map>

Config information

See
ReadDevices
local DeletedDevices -> list<string>

deleted devices

local NetDevs -> list<string>

configured ISDN net devices

global AbortFunction -> block<boolean>

Abort function return boolean return true if abort

local modified_hw -> boolean

Data was modified?

global Modified () -> boolean

Data was modified?

Return value:
true if modified
local IfaceName (string num, map iface) -> string

Parameters:
num
iface
Return value:
name of interface
global Locate (string key, string val) -> list<string>

Locate interfaces of the given key and value

Parameters:
key interface key
val interface value
Return value:
of devices with key=val
global Read () -> boolean

Read all ISDN settings from the SCR

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

Only write configuration without starting any init scripts and SuSEconfig

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

Update the SCR according to network settings

Parameters:
start
Return value:
true on success if start is true, load drivers and interfaces
global TestDev (string dev) -> boolean

Test the given card settings

Parameters:
dev
Return value:
true on success
local set_cardparameters (map cfg) -> map

default settings of hw device

Parameters:
cfg
local set_ifparameters (map cfg) -> map

default settings of interface

Parameters:
cfg
local set_hwparameters (map hw) -> void

copy detected hw settings to current item

Parameters:
hw
Info:

Select the given hardware item or clean up structures

Parameters:
which item to be chosen
global Import (map settings) -> boolean

Parameters:
settings
global Export () -> map

global NetDeviceList () -> list<string>

List of configured interface entries

Return value:
global Summary (boolean split) -> list

Build a textual summary and a list of unconfigured cards

Parameters:
split
Return value:
summary of the current configuration
global OverviewDev () -> list

global CountIF () -> integer

Count of valid interface entries

Return value:
count
global PrepareInterface () -> boolean

If not allready done set a valid interface

Return value:
true if the selection was successful false if here aren't any interfaces
global SelectInterface (boolean auto) -> boolean

Displays a popup to select one interface to be the current interface

Parameters:
auto if true and only one interface exist take it without a extra dialog
Return value:
true if the selection war successful false if here aren't any interfaces