Network configuration |
modules/Provider.ycp |
Provider data | |
|
Used by Modem, ISDN, DSL.
The provider data is grouped by country. There are predefined ones
(providers.rpm) and custom ones (/etc/sysconfig/network/providers,
represented here as country = "_custom")
Imports
Global VariablesGlobal Functions
Local VariablesLocal Functions |
Current provider name
Current provider structure depends on Type. See providers.rpm
Current provider type
Last selected country
Supported provider types
Custom providers (system ones are too many and thus read on demand)
Custom providers (initial copy)
Countries list
Deleted providers
Pending operation (nil = none)
True if providers are already read
Country
Were the providers changed?
- Parameters:
-
type
- Return value:
-
true if modified
Read providers data (custom only) and country mappings
- Return value:
-
true if success
This is a single point of dependence on the Language module of yast2-country
- Parameters:
-
providers type
- Parameters:
-
providers type
- Parameters:
-
type
Write custom providers data
- Parameters:
-
type providers the module is working with ("all"|"modem"|"isdn"|"dsl")
- Return value:
-
true if sucess
Import data
- Parameters:
-
type providers providers to be imported
- Return value:
-
true on success
Export data
- Parameters:
-
type
- Return value:
-
dumped settings (later acceptable by Import())
Select the given system provider
- Parameters:
-
name SCR path to the system provider
- Return value:
-
true if success
Select the given provider
- Parameters:
-
name provider to select ("" for new provider, default values)
- Return value:
-
true if success
Add a new provider
- Parameters:
-
type provider type (modem|isdn|dsl)
- Return value:
-
true if success
Edit the given provider
- Parameters:
-
name provider to edit
- Return value:
-
true if success
Delete the given provider
- Parameters:
-
name provider to delete
- Return value:
-
true if success
Commit pending operation
- Return value:
-
true if success
Clone the given provider
- Parameters:
-
name provider to clone
- Return value:
-
true if success
Clone the given system provider
- Parameters:
-
name SCR path to system provider to clone
- Return value:
-
true if success
Clone current provider
- Return value:
-
true if success
Create an overview table with all configured providers
- Parameters:
-
type
- Return value:
-
table items
Create a textual summary and a list of unconfigured providers
- Parameters:
-
type split split configured and unconfigured?
- Return value:
-
summary of the current configuration
Get list of countries
- Return value:
-
for SelectionBox
Check if provider name is unique
- Parameters:
-
name provider name
- Return value:
-
true if OK
Return current provider type
- Return value:
-
current provider type
Filter providers based on the type
- Parameters:
-
provs list of providers type desired type "modem"|"isdn"|"rawip"|"syncppp"|"dsl"
- Return value:
-
of type capable providers
Sorts providers alphabeticly (non-case-sensitively) and by priority.
In the first step, priority and name of each provider is obtained.
List of strings built from these values is created. Item lists are:
"<1-character-priority><34-characters-provider-name>
- Parameters:
-
provs list of providers
- Return value:
-
sorted list of providers
Get providers from a group (country/other)
- Parameters:
-
type country we want providers from this country preselect preselect this provider
- Return value:
-
of items for SelectionBox