Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-04-07 | bridge: T2232: prevent deletion of enslaved interfaces | Christian Poessinger | |
Interfaces enslaved to a bridge are not allowed to be deleted. If an interface is deleted from the config but it is still enslaved to a bridge will cause a configuration error on the subsequent boot. | |||
2020-04-07 | vyos.util: T2226: add proper comments | Christian Poessinger | |
2020-04-06 | util: T2226: remove all references to subprocess_cmd | Thomas Mangin | |
2020-04-06 | util: T2226: rewrite util to use cmd | Thomas Mangin | |
2020-04-06 | util: T2226: improve popen, cmd and add run | Thomas Mangin | |
improves open and cmd adds a new help function run. the extra optional arguments provide all the features of subprocess used by every module of VyOS. popen matches closely subprocess.Popen cmd matches closely subprocess.check_output run matches closely subprocess.call and os.system popen returns the string and errord code cmd returns the string and raise on error (the class can be defined the default is OSError) run returns the return code of the command the options are: shell=None, the code auto-detect is a shell is required decode=None, use .decode() otherwise the encoding will be used env=None, universal_newlines=None: as per subprocess.Popen input=None, timeout=None, stdout=PIPE, stderr=STDOUT, as per Popen.communicate | |||
2020-04-04 | vyos.util: rename chmod_x_file() to chmod_x() | Christian Poessinger | |
Now both files and directories are supported. | |||
2020-04-04 | Merge pull request #299 from thomas-mangin/T2205 | Christian Poessinger | |
ifconfig: T2205: silence ethtool harmless failures | |||
2020-04-04 | ifconfig: T2205: silence ethtool harmless failures | Thomas Mangin | |
Not all interface are capable of all features. Since commands are now checked for valid completion, ethtool command failure must be ignored. | |||
2020-04-04 | vyos.util: use common subprocess_cmd wrapper | Christian Poessinger | |
2020-04-02 | vyos.util: move import statements next to the helpers using it | Christian Poessinger | |
2020-04-02 | vyos.util: add chown_file and chmod_x_file helpers | Christian Poessinger | |
2020-03-29 | vyos.util: increase usage of process_running() and remove duplicated code | Christian Poessinger | |
OpenVPN, WIFI, SSTP all had the same boiler plate copied about checking if a process associated with a pidfile is running or not. This has been migrated to the common library function vyos.util.process_running(). | |||
2020-03-28 | ipv6: T1831: migrate eui64 addressing to XML and python | Christian Poessinger | |
2020-03-28 | vyos.util: import cleanup | Christian Poessinger | |
Instead of including all functions/classes from a file, only include the ones we really need. | |||
2019-12-03 | T1801: move escaping of backslashes into configtree | John Estabrook | |
2019-11-17 | T1801: escape isolated backslashes before passing to ConfigTree() | John Estabrook | |
2019-08-30 | [op-mode] T1621 rewrite misc commands to python/xml syntax | Dmytro Aleksandrov | |
2019-08-23 | [op-mode] T1607 rewrite 'reset conntrack', 'reset & show ip[v6]' to ↵ | Dmytro Aleksandrov | |
python/xml syntax | |||
2019-07-03 | T1503: add functions for commit lock checking and waiting. | Daniil Baturin | |
2018-07-24 | Add a validator for scripts that are supposed to be in /config | Daniil Baturin | |
2018-07-23 | Add a convenience function for getting the config owners group GID. | Daniil Baturin | |
2018-07-20 | Remove a stray debug print. | Daniil Baturin | |
2018-07-20 | Add vyos.util.read_file() function. | Daniil Baturin | |
Really, how many times can we write the same thing. | |||
2018-07-20 | Add a function for converting seconds to a human readable elapsed time ↵ | Daniil Baturin | |
descriptions such as 1w3d18h42m12s. | |||
2018-07-19 | Add a function for quickly checking running processes by their PID files. | Daniil Baturin | |
2018-06-16 | Set the license of all vyos.* libraries to LGPLv2+. | Daniil Baturin | |
2018-06-08 | T689: 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-05-14 | T633: build integration and minor fixes in the op mode command generator. | Daniil Baturin | |
2017-09-21 | T401: add functions for reading VyOS version data. | Daniil Baturin | |
2017-09-08 | Separate 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. |