Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-09-08 | Make the vyos.config.Config's return_value(s) and list_node functions behave ↵ | Daniil Baturin | |
like their Perl counterparts. Most scripts used to do something like my $foo = $config->returnValue("system foo"); if !defined($foo) { $foo = $defaultFooValue; } In most cases values do not exist because they are optional and simply not set. In a substantial minority of cases they don't exist but are mandatory, in this case it's probably a good practice to check if it exists first. In rare but frustrating cases returnValue returns undef because the path is wrong. It was tempting but as it turns out impractical to force the user to handle every undefined value as an error, but the cost of wrapping every return_value call in a try/except block is too high. Instead we should facilitate the most common case. For this, those functions now support an optional named argument default=None so an optional value with a sensible default can be handled like $foo = config.return_value("system foo", default="bar") | |||
2017-09-08 | Automatically decode the output of cli-shell-api as ASCII | Daniil Baturin | |
to avoid having to decode it anywhere else. | |||
2017-09-08 | Fix handling of tag and multi nodes in the convertor. | Daniil Baturin | |
Ugly fixup in the makefile to delete generated node.def's that are now in other packages. Adjust the cron interface definition to better match the old templates. | |||
2017-09-07 | Oops, accidentally a wrong dir for the python install path. | Daniil Baturin | |
2017-09-07 | Add interface definition for cron and enable templates building in the ↵ | Daniil Baturin | |
makefiles. | |||
2017-09-07 | Add support for priority tags. In 1.x, there's no way around using it. | Daniil Baturin | |
2017-09-07 | Remove crude debugging stuff, I'll add a proper solution later. | Daniil Baturin | |
2017-09-07 | Merge branch 'current' of https://github.com/vyos/vyos-1x into current | Daniil Baturin | |
2017-09-07 | Add a convertor from new style XML command definitions to old style templates. | Daniil Baturin | |
2017-08-27 | adding validate(), generate(), apply() to vyatta-update-crontab.py | Taniadz | |
2017-08-23 | adding vyatta-update-crontab.py | Taniadz | |
2017-08-17 | Update the changelog. | Daniil Baturin | |
2017-08-17 | T353: add the Python library for reading VyOS config to the new package. | Daniil Baturin | |
2017-08-17 | Add empty Debian packaging. | Daniil Baturin | |
2017-08-18 | Initial commit | Daniil Baturin | |