summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-09-20T393: Migrate vyatta-lldpd to vyos-1xTaniadz
2017-09-16T395: Implement a numeric value validatorDaniil Baturin
2017-09-08Separate VyOSError and ConfigError.Daniil Baturin
VyOSError is now only raised on improper config operations and internal errors, such as trying to use a function on a wrong kind of node. ConfigError should be used by scripts to indicate configuration mistakes and error conditions.
2017-09-08Better checks in the cron script.Daniil Baturin
Check if crontab exists before trying to delete it. Fail commit if executable is not defined in the task.
2017-09-08Rename the cron script to not mention Vyatta anymore.Daniil Baturin
2017-09-08Restructure the cron script and fix bugs.Daniil Baturin
Do not inherit from the Config class, it only made things more complicated. Remove the sys.path.append that was made necessary by using partial paths where full paths are expected. Exit with 1 (to make commit fail properly) if VyOSError is raised. Replace the OO representation of cron jobs with simple hashes: the format is not expected to grow any more complex and encapsulation will hardly be necessary (though if one can think of a good OO design for this, it's welcome). Do not mix config reading and validation to enable changing the syntax without changing any of the code but get_config()
2017-08-27adding validate(), generate(), apply() to vyatta-update-crontab.pyTaniadz
2017-08-23adding vyatta-update-crontab.pyTaniadz