Network configuration |
modules/Lan.ycp |
Network card data | |
|
|
This module has an unstable interface. |
Representation of the configuration of network cards.
Input and output routines.
Imports
Includes
Global Functions
Local VariablesLocal Functions |
Current module information
autoinstallation: if true, write_only is disabled and the network settings are applied at once, like during the normal installation. #128810, #168806 boolean start_immediately = false;
Hotplug type ("" if not hot pluggable)
Return a modification status
- Return value:
-
true if data was modified
Lan::Read (`cache) will do nothing if initialized already.
Read all network settings from the SCR
- Parameters:
-
cache : `cache=use cached data, `nocache=reread from disk (for reproposal); TODO pass to submodules
- Return value:
-
true on success
(a specialization used when a parameterless function is needed)
- Return value:
-
Read(`cache)
Update the SCR according to network settings
- Return value:
-
true on success
Only write configuration without starting any init scripts and SuSEconfig
- Return value:
-
true on success
Import data
- Parameters:
-
settings settings to be imported
- Return value:
-
true on success
Export data
- Return value:
-
dumped settings (later acceptable by Import())
Create a textual summary and a list of unconfigured devices
- Parameters:
-
mode "split": split configured and unconfigured?
"summary": add resolver and routing symmary, "proposal": for proposal, add links for direct config
- Return value:
-
summary of the current configuration
Create a textual summary for the general network settings proposal (NetworkManager + ipv6)
- Return value:
-
[rich text, links]
Add a new device
- Return value:
-
true if success
Edit the given device
- Parameters:
-
name device to edit
- Return value:
-
true if success
Delete the given device
- Return value:
-
true if success
Uses product info and is subject to installed packages.
- Return value:
-
Should NM be enabled?
Create minimal ifcfgs for the case when NetworkManager is used: NM does not need them but yast2-firewall and SuSEfirewall2 do Avoid existing ifcfg from network installation
Propose interface configuration
- Return value:
-
true if something was proposed
Propose the hostname See also DNS::Read
- Return value:
-
true if something was proposed
Propose configuration for routing and resolver
- Return value:
-
true if something was proposed
Propose a configuration
- Return value:
-
true if something was proposed
Create a configuration for autoyast
- Return value:
-
true if something was proposed
Check if any device is configured with DHCP.
- Return value:
-
true if any DHCP device is configured
- Return value:
-
of packages needed when writing the config
- Return value:
-
of packages needed when writing the config in autoinst mode
Xen bridging confuses us (#178848)
- Return value:
-
whether xenbr* exists