summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)Author
2018-06-08Move the version.json file used by newer code to /usr/share/vyosDaniil Baturin
2018-06-08T689: add a basic library for working with network interfaces and support ↵Daniil Baturin
for interface types to the completion script.
2018-06-08T689: add a new script for 'show hardware cpu summary'.Daniil Baturin
Since the format is common in /proc, make parsing the data a library function.
2018-06-05T684: add bindings for the commands formatter and scripts for converting ↵Daniil Baturin
configs to commands.
2018-05-28Add bindings for libvyosconfig -- the standalone config file parsing and ↵Daniil Baturin
manipulation library.
2018-05-15Add missing vyos.base moduleYuya Kusakabe
2018-05-14Fix misplaces ConfigError exception.Daniil Baturin
2018-05-14Move the show version command to the vyos-1x package and refactor it a bit.Daniil Baturin
2018-05-14T633: build integration and minor fixes in the op mode command generator.Daniil Baturin
2018-02-28Fix return_values function (return a list instead of a raw string).Daniil Baturin
2017-10-26T433: Add "effective" observers and inSession to the vyos.config libraryTaniadz
2017-09-21T401: add functions for reading VyOS version data.Daniil 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-08Make 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-08Automatically decode the output of cli-shell-api as ASCIIDaniil Baturin
to avoid having to decode it anywhere else.
2017-08-17T353: add the Python library for reading VyOS config to the new package.Daniil Baturin