245. TftpServer

Data for configuration of TftpServer, input and output functions.

245.1. Summary of Module Globals

List of Global Functions

  • AutoPackages - Return needed packages and packages to be removed during autoinstallation.

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

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

  • GetModified - Returns true if the settings were modified

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

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

  • Read - Read all tftp-server settings

  • Set - Set module data, without validity checking

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

  • Summary -

  • Write - Write all tftp-server settings

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

List of Global Variables

  • directory - Image directory, last argument of in.tftpd

  • foreign_servers - 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.

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

  • required_packages - Required packages for operation

  • start - Start tftpd via xinetd?

245.2. Global Functions

245.2.1. AutoPackages

Return needed packages and packages to be removed during autoinstallation.

Return value

  • map - of lists.

245.2.2. Export

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

Return value

  • map - Dumped settings (later acceptable by Import ())

245.2.3. ForeignServersError

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

Return value

  • string - error string

245.2.4. GetModified

Returns true if the settings were modified

Return value

  • boolean - settings were modified

245.2.5. Import

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

Function parameters

  • map settings

Return value

  • boolean - True on success

245.2.6. ParseServerArgs

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

Function parameters

  • string server_args

Return value

  • void

245.2.7. Read

Read all tftp-server settings

Return value

  • boolean - true on success

245.2.8. Set

Set module data, without validity checking

Function parameters

  • map settings

Return value

  • void

245.2.9. SetModified

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

Return value

  • void

245.2.10. Summary

Return value

  • string - Html formatted configuration summary

245.2.11. Write

Write all tftp-server settings

Return value

  • boolean - true on success

245.2.12. WriteOnly

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

Return value

  • boolean - true on success

245.3. Global Variables

245.3.1. directory

Image directory, last argument of in.tftpd

245.3.2. foreign_servers

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.

245.3.3. other_args

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

245.3.4. required_packages

Required packages for operation

245.3.5. start

Start tftpd via xinetd?

245.4. Module Requirements

245.4.1. Module Imports

  • Progress
  • Report
  • Service
  • SuSEFirewall
  • Summary

245.4.2. Module Includes