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
- Detection
- Map
- NetworkDevices
- Summary
Includes
Global Variables
Global Functions
Local Variables
|
|
|
global Routes -> list<map>
|
|
All routes
list
global Forward -> boolean
|
|
Enable IP forwarding
.sysconfig.sysctl.IP_FORWARD
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:
global Read () -> boolean
|
|
Read routing settings
If no routes, sets a default gateway from Detection
- Return value:
global Write () -> boolean
|
|
Write routing settings and apply changes
- Return value:
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:
Dump the Routing settings to a map, for autoinstallation use.
- Return value:
|
autoinstallation settings |
global GetDevices () -> list
|
|
Get the current devices list
- Return value:
global GetGateway () -> string
|
|
Get the default gateway
- Return value:
global SetDevices (list devs) -> boolean
|
|
Set the available devices list (for expert routing dialog)
- Parameters:
- Return value:
global Summary () -> string
|
|
Create routing text summary
- Return value:
|