Network configuration |
modules/Lan.ycp |
| Network card data |
|
|
|
Representation of the configuration of network cards.
Input and output routines.
Imports
- Arch
- DNS
- Detection
- Host
- Hostname
- IP
- Map
- Mode
- NetworkConfig
- NetworkDevices
- NetworkModules
- ProductFeatures
- Progress
- Routing
- Service
- String
- SuSEFirewall4Network
- Summary
Includes
- network/complex.ycp
- network/hardware.ycp
- network/install.ycp
- network/routines.ycp
- network/runtime.ycp
- network/runtime.ycp
Global Variables
Global Functions
Local Variables
Local Functions
|
|
|
Current module information
Hotplug type ("" if not hot pluggable)
|
global AbortFunction -> block<boolean>
|
|
Abort function
return boolean return true if abort
|
local Hardware -> list<map>
|
|
Hardware information
- See:
-
Modules information
- See:
-
Deleted modules
/etc/install.inf data
|
local modified -> boolean
|
|
Data was modified?
|
global operation -> symbol
|
|
Which operation is pending?
|
global Modified () -> boolean
|
|
Data was modified?
- Return value:
|
global Read () -> boolean
|
|
Read all network settings from the SCR
- Return value:
|
global Write () -> boolean
|
|
Update the SCR according to network settings
- Return value:
|
global WriteOnly () -> boolean
|
|
Only write configuration without starting any init scripts and SuSEconfig
- Return value:
|
global Import (map settings) -> boolean
|
|
Import data
- Parameters:
|
settings |
settings to be imported |
- Return value:
Export data
- Return value:
|
|
dumped settings (later acceptable by Import()) |
|
local SelectHWMap (map hw) -> void
|
|
Select the hardware component
- Parameters:
|
global SelectHW (integer which) -> void
|
|
Select the hardware component
- Parameters:
|
which |
index of the component |
|
global Summary (string mode) -> list
|
|
Create a textual summary and a list of unconfigured devices
- Parameters:
|
mode |
"split": split configured and unconfigured?
"summary": add resolver and routing symmary |
- Return value:
|
|
summary of the current configuration |
|
global Overview () -> list
|
|
Create an overview table with all configured devices
- Return value:
|
global FreeDevices (string type) -> list
|
|
Return 10 free devices
- Parameters:
- Return value:
|
global FreeAliases (string type, integer num) -> list
|
|
Return 10 free aliases
- Parameters:
|
type |
device type |
|
num |
device number |
- Return value:
|
local SetDeviceVars (map devmap) -> void
|
|
Set various device variables
- Parameters:
|
devmap |
map with variables |
|
global Select (string dev) -> boolean
|
|
Select the given device
- Parameters:
|
dev |
device to select ("" for new device, default values) |
- Return value:
Add a new device
- Return value:
|
global Edit (string name) -> boolean
|
|
Edit the given device
- Parameters:
- Return value:
|
global Delete (string name) -> boolean
|
|
Delete the given device
- Parameters:
- Return value:
|
global Commit () -> boolean
|
|
Commit pending operation
- Return value:
|
local GetModuleForInterface (string ay_device, list<map> ay_modules) -> map
|
|
Get the module configuration for the modules configured in the
interface section
- Parameters:
|
ay_device |
Device, for example eth0 |
|
ay_modules |
list of modules from the AY profile |
- Return value:
|
|
the module map with module name and options |
|
local FindMatchingDevice (map interface) -> map
|
|
Find matching device
Find a device, optionally with some predefined values
- Parameters:
- Return value:
|
|
The map of the matching device. |
|
global Propose () -> boolean
|
|
Propose a configuration
- Return value:
|
|
true if something was proposed |
|
global Autoinstall () -> boolean
|
|
Create a configuration for autoyast
- Return value:
|
|
true if something was proposed |
|
global AnyDHCPDevice () -> boolean
|
|
Check if any device except the current one is configured with DHCP.
The current one is checked separately because there may be uncommitted
changes. (#17391)
- Return value:
|
|
true if any DHCP device except the current one is configured |
|
global HasAliases (string dev) -> boolean
|
|
Check if the given device has any virtual alias.
- Parameters:
- Return value:
|
|
true if there are some aliases |
|
global Packages () -> list<string>
|
|
- Return value:
|
|
of packages needed when writing the config |
|
global AutoPackages () -> map
|
|
- Return value:
|
|
of packages needed when writing the config in autoinst
mode |
|
global GetModified () -> boolean
|
|
Function which returns if the settings were modified
- Return value:
|
global SetModified () -> void
|
|
Function sets internal variable, which indicates, that any
settings were modified, to "true"
|
global UnsetModified () -> void
|
|
Function sets internal variable, which indicates, that any
settings were modified, to "false"
|