Network configuration |
modules/Host.ycp |
Hosts data (/etc/hosts) | |
|
Imports
Global VariablesGlobal Functions
Local Variables |
All hosts See hosts(5) keys: IPs, (But #35671 suggests that repeating IPs is valid) values: names, the first one is the canonical one
Deleted hosts
Data was modified?
All hosts read at the start
"hosts" file location
Only write configuration
Read hosts settings
- Return value:
-
true if success
Write hosts settings and apply changes
- Return value:
-
true if success
Get all the Hosts configuration from a map. When called by hosts_auto (preparing autoinstallation data) the map may be empty.
- Parameters:
-
settings autoinstallation settings
- Return value:
-
true if success
Dump the Hosts settings to a map, for autoinstallation use.
- Return value:
-
autoinstallation settings
Return "system" predefined hosts (should be present all the time)
- Return value:
-
of system hosts
Update hosts according to the current hostname (only one hostname, assigned to all IPs)
- Parameters:
-
oldhn newhn iplist localhost IP addresses
- Return value:
-
true if success
Create summary
- Return value:
-
summary text
Function which returns if the settings were modified
- Return value:
-
settings were modified
Function sets internal variable, which indicates, that any settings were modified, to "true"