OPSI.Util.Task.ConfigureBackend.DHCPD module

Functionality to automatically configure the DHCPD-backend.

New in version 4.0.6.40.

author:Niko Wenselowski <n.wenselowski@uib.de>
license:GNU Affero General Public License version 3
OPSI.Util.Task.ConfigureBackend.DHCPD.configureDHCPD(configFile=u'/etc/dhcp3/dhcpd.conf')
OPSI.Util.Task.ConfigureBackend.DHCPD.insertDHCPDRestartCommand(dhcpBackendConfigFile, restartCommand)

Searches for the ‘reloadConfigCommand’ in the given file and replaces the value of it with restartCommand.

Since the dhcpd.conf usually contains information that is evaluated during runtime it is not possible to just read the config and then patch the value we want as this would result in destroying the dynamic.