278. TftpServer

Data for configuration of TftpServer, input and output functions.

278.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?

278.2. Global Functions

278.2.1. AutoPackages

Return needed packages and packages to be removed during autoinstallation.

Return value

  • map - of lists.

278.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 ())

278.2.3. ForeignServersError

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

Return value

  • string - error string

278.2.4. GetModified

Returns true if the settings were modified

Return value

  • boolean - settings were modified

278.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

278.2.6. ParseServerArgs

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

Function parameters

  • string server_args

Return value

  • void

278.2.7. Read

Read all tftp-server settings

Return value

  • boolean - true on success

278.2.8. Set

Set module data, without validity checking

Function parameters

  • map settings

Return value

  • void

278.2.9. SetModified

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

Return value

  • void

278.2.10. Summary

Return value

  • string - Html formatted configuration summary

278.2.11. Write

Write all tftp-server settings

Return value

  • boolean - true on success

278.2.12. WriteOnly

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

Return value

  • boolean - true on success

278.3. Global Variables

278.3.1. directory

Image directory, last argument of in.tftpd

278.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.

278.3.3. other_args

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

278.3.4. required_packages

Required packages for operation

278.3.5. start

Start tftpd via xinetd?

278.4. Module Requirements

278.4.1. Module Imports

  • Progress
  • Report
  • Service
  • SuSEFirewall
  • Summary

278.4.2. Module Includes