Skip to content

[agent] Allow delaying the apply of the configuration until specific datetime #104

@nemesifier

Description

@nemesifier

Add a configuration option which allows to specify a datetime, eg: apply_at.

When OpenWISP applies a configuration, if apply_at is specified and represents a valid future date, enter an infinite loop that is broken only until the current time is equal or higher than apply_at.

I think the best place to implement this functionality is in https://github.com/openwisp/openwisp-config/blob/master/openwisp-config/files/sbin/openwisp-update-config.lua, the option shall be passed by the agent which takes it from the configuration.

If apply_at is not a valid date or is a past date, the apply of the configuration happens normally, with the difference that if the date is invalid we shall log this with the system logger.

Related to openwisp/openwisp-controller#182.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To do general

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions