Network configuration |
modules/Routing.ycp |
Routing data (/etc/sysconfig/network/routes) | |
|
See routes(5)
Does not work with interface-specific routes yet (ifroute-lo...)
Imports
Includes
Global VariablesGlobal Functions
Local Variables |
global
Routes
->
list<map>
All routes list
global
Forward
->
boolean
Enable IP forwarding .sysconfig.sysctl.IP_FORWARD
local
devices
->
list
List of available devices
local
Orig_Routes
->
list
All routes read at the start
local
routes_file
->
string
"routes" file location
global
Modified ()
->
boolean
Data was modified?
- Return value:
-
true if modified
global
Read ()
->
boolean
Read routing settings If no routes, sets a default gateway from Detection
- Return value:
-
true if success
global
Write ()
->
boolean
Write routing settings and apply changes
- Return value:
-
true if success
global
Import (map settings)
->
boolean
Get all the Routing configuration from a map. When called by routing_auto (preparing autoinstallation data) the map may be empty.
- Parameters:
-
settings autoinstallation settings
- Return value:
-
true if success
global
Export ()
->
map
Dump the Routing settings to a map, for autoinstallation use.
- Return value:
-
autoinstallation settings
global
GetDevices ()
->
list
Get the current devices list
- Return value:
-
devices list
global
GetGateway ()
->
string
Get the default gateway
- Return value:
-
gateway
global
SetDevices (list devs)
->
boolean
Set the available devices list (for expert routing dialog)
- Parameters:
-
devs new devices list
- Return value:
-
true if success
global
Summary ()
->
string
Create routing text summary
- Return value:
-
summary text