def METHOD_NAME(self) -> int:
    """
    This restarts the dhcp server and thus applied the newly written config files.
    """
    service_name = "dnsmasq"
    if self.settings.restart_dhcp:
        return_code_service_restart = process_management.service_restart(
            service_name
        )
        if return_code_service_restart != 0:
            self.logger.error("%s service failed", service_name)
        return return_code_service_restart
    return 0