YaST2 Developers Documentation: Network configuration

Network configuration

modules/Proxy.ycp
Proxy data
  • Michal Svec

This module has an unstable interface.

Configures FTP and HTTP proxies via sysconfig & SuSEconfig and /root/.curlrc (for YOU)

Imports

  • Progress
  • Summary

Includes

  • network/routines.ycp
  • network/runtime.ycp

Structures

Global Variables

Global Functions

global modified -> boolean

Data was modified?

Info:

Display popup at the end of the proxy configuration

Parameters:
modified true if proxy settings have been modified define void ProxyFinishPopup(boolean modified) ``{ string text = _("Applications that support it, such as YaST2 Online Update, use them immediately. Other applications use them after a new login (lynx, wget). Some applications do not support these settings at all -- they use their own settings system. "); FinishPopup(modified, "proxy", text, "", []); }
global Write () -> boolean

Write routing settings and apply changes

Return value:
true if success
global Import (map settings) -> boolean

Get all settings from a map. When called by _auto (preparing autoinstallation data) the map may be empty.

Parameters:
settings autoinstallation settings
Return value:
true if success
global RunTestProxy (string http_proxy, string https_proxy, string ftp_proxy, string proxy_user, string proxy_password) -> map <string, map <string, any> >

Runs tests of the HTTP and FTP proxy

Structure return = $[

	"HTTP" : $[
		"exit" : _exit_code,
		"stdout" : _stdout,
		"stderr" : _stderr,
	],
	"HTTPS" : $[
		"exit" : _exit_code,
		"stdout" : _stdout,
		"stderr" : _stderr,
	],
	"FTP" : $[
		"exit" : _exit_code,
		"stdout" : _stdout,
		"stderr" : _stderr,
	],
 ]
Parameters:
http_proxy
https_proxy
ftp_proxy
proxy_user
proxy_password
Return value:
with results of the test
global Export () -> map

Dump the Routing settings to a map, for autoinstallation use.

Return value:
autoinstallation settings
global Summary () -> string

Create proxy summary

Return value:
summary text
global GetModified () -> boolean

Function which returns if the settings were modified

Return value:
settings were modified
global SetModified () -> void

Function sets internal variable, which indicates, that any settings were modified, to "true"

global GetEnvironment () -> map <string, string>

Function returns an environment usable for curl. The proxy user/password are read from /root/.curlrc.