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.
Add a configuration option which allows to specify a datetime, eg:
apply_at.When OpenWISP applies a configuration, if
apply_atis specified and represents a valid future date, enter an infinite loop that is broken only until the current time is equal or higher thanapply_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_atis 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.