Unknown YCP Module |
This module has an unstable interface. |
Imports
Global Functions
Local VariablesLocal Functions |
File: modules/NetworkService.ycp
Package: Network configuration
Summary: Init script handling, ifup vs NetworkManager
Authors: Martin Vidner
$Id$
This module used to switch between /etc/init.d/network providing LSB network.service and the NetworkManager.service (or another), which installs a network.service alias link.
The service name installing the network.sevice is visible in the "Id" systemctl property:
# systemctl --no-pager -p Id show network.service Id=network.service # systemctl --force enable NetworkManager.service # systemctl --no-pager -p Id show network.service Id=NetworkManager.service
if false, read needs to do work
current network service id name
the new network service id name
Path to the systemctl command
Helper to run systemctl actions
- Parameters:
-
service action
- Return value:
-
exit code
Whether a network service change were requested
- Return value:
-
true when service change were requested
Whether use NetworkManager or ifup
- Return value:
-
true when the network is managed, false when the /etc/init.d/network script is in use.
- Parameters:
-
m whether networkmanager will be used
Initialize module data
Enables and disables the appropriate services.
Reports if network service is active or not. It does not report if network is connected.
- Return value:
-
true when network service is active
Reload or restars the network service.
Restarts the network service
This is an old, confusing name for ReloadOrRestart() now
Opens up a continue/cancel confirmation popup in the case when NetworkManager is enabled. User is informed that continuing the configuration may produce undefined results. If NetworkManager is not used, silently returns true.
- Return value:
-
continue
If there is network running, return true. Otherwise show error popup depending on Mode and return false
- Return value:
-
true if network running