Proxy data
List of Global Functions
Export - Dump the Routing settings to a map, for autoinstallation use.
GetEnvironment - Function returns an environment usable for curl. The proxy user/password are read from /root/.curlrc.
GetModified - Function which returns if the settings were modified
Import - Get all settings from a map. When called by <name>_auto (preparing autoinstallation data) the map may be empty.
RunTestProxy - Runs tests of the HTTP and FTP proxy
SetModified - Function sets internal variable, which indicates, that any settings were modified, to "true"
Summary - Create proxy summary
Write - Write routing settings and apply changes
List of Global Variables
modified - Data was modified?
Dump the Routing settings to a map, for autoinstallation use.
Return value
map - autoinstallation settings
Function returns an environment usable for curl. The proxy user/password are read from /root/.curlrc.
Return value
map <string, string>
Function which returns if the settings were modified
Return value
boolean - settings were modified
Get all settings from a map. When called by <name>_auto (preparing autoinstallation data) the map may be empty.
Function parameters
map settings
Return value
boolean - true if success
Runs tests of the HTTP and FTP proxy
Function parameters
string http_proxy
string https_proxy
string ftp_proxy
string proxy_user
string proxy_password
Return value
map <string, map <string, any> > - with results of the test
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, ], ]
Function sets internal variable, which indicates, that any settings were modified, to "true"
Return value
void