YaST2 Developers Documentation: Configuration of TftpServer

Configuration of TftpServer

modules/TftpServer.ycp
Data for configuration of TftpServer, input and output functions.
  • Martin Vidner

This module has an unstable interface.

Representation of the configuration of TftpServer. Input and output routines.

Imports

  • Progress
  • Report
  • Service
  • SuSEFirewall
  • Summary

Global Variables

Global Functions

Local Variables

local modified -> boolean

Any settings modified? As we have only a single dialog which handles it by itself, it is used only by autoinst cloning.

global GetModified () -> boolean

Returns true if the settings were modified

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

Function sets an internal variable indicating that any settings were modified to "true". Used for autoinst cloning.

global required_packages -> list<string>

Required packages for operation

global start -> boolean

Start tftpd via xinetd?

global directory -> string

Image directory, last argument of in.tftpd

global other_args -> string

Other arguments to in.tftpd, ie. not including -s or /dir

global foreign_servers -> string

Detect who is serving tftp: Inetd may be running, it is the default. But it is ok unless it is serving tftp. So we detect who is serving tftp and warn if it is not xinetd or in.tftpd. If nonempty, the user is notified and the module gives up.

global ParseServerArgs (string server_args) -> void

Extract the directory and other arguments. global to make testing easier

Parameters:
server_args server_args from xinetd.conf
global Read () -> boolean

Read all tftp-server settings

Return value:
true on success
global ForeignServersError () -> string

Return error string to be used in WriteOnly (for autoinst) or before the edit dialog.

Return value:
error string
global WriteOnly () -> boolean

Write all tftp-server settings without actually (re)starting the service

Return value:
true on success
global Write () -> boolean

Write all tftp-server settings

Return value:
true on success
global Set (map settings) -> void

Set module data, without validity checking

Parameters:
settings may be empty for reset
global Import (map settings) -> boolean

Get all tftp-server settings from the first parameter (For use by autoinstallation.)

Parameters:
settings The YCP structure to be imported.
Return value:
True on success
global Export () -> map

Dump the tftp-server settings to a single map (For use by autoinstallation.)

Return value:
Dumped settings (later acceptable by Import ())
global Summary () -> string

Return value:
Html formatted configuration summary
global AutoPackages () -> map

Return needed packages and packages to be removed during autoinstallation.

Return value:
of lists.