276. TftpServer

Data for configuration of TftpServer, input and output functions.

276.1. Authors

  • Martin Vidner <mvidner@suse.cz>

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

276.3. Global Functions

276.3.1. AutoPackages

Return needed packages and packages to be removed during autoinstallation.

Return value

  • map - of lists.

276.3.2. Export

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

Return value

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

276.3.3. ForeignServersError

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

Return value

  • string - error string

276.3.4. GetModified

Returns true if the settings were modified

Return value

  • boolean - settings were modified

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

276.3.6. ParseServerArgs

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

Function parameters

  • string server_args

Return value

  • void

276.3.7. Read

Read all tftp-server settings

Return value

  • boolean - true on success

276.3.8. Set

Set module data, without validity checking

Function parameters

  • map settings

Return value

  • void

276.3.9. SetModified

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

Return value

  • void

276.3.10. Summary

Return value

  • string - Html formatted configuration summary

276.3.11. Write

Write all tftp-server settings

Return value

  • boolean - true on success

276.3.12. WriteOnly

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

Return value

  • boolean - true on success

276.4. Global Variables

276.4.1. directory

Image directory, last argument of in.tftpd

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

276.4.3. other_args

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

276.4.4. required_packages

Required packages for operation

276.4.5. start

Start tftpd via xinetd?

276.5. Module Requirements

276.5.1. Module Imports

  • Progress
  • Report
  • Service
  • SuSEFirewall
  • Summary

276.5.2. Module Includes