Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-04-13 | cmd: T2226: improve debugging | Thomas Mangin | |
allow to setup the debugging from environment variables. allow to set the name of the file used for logging change the name of the debug options to be: - developer: enable pdb of raise - log: all logging messages are logged to a file - ifconfig: show on screen action peformed to change intefaces - command: print all the result of command to screen also provide a way to setup the debugging using environment variables. | |||
2020-04-13 | cmd: T2226: add the a full log of all commands | Thomas Mangin | |
2020-04-12 | vyos.util: openvpn: migrate to chmod_600() | Christian Poessinger | |
2020-04-12 | vyos.util: rename chmod_x() -> chmod_755() | Christian Poessinger | |
2020-04-11 | util: T2226: passthrough for stderr, fix input, always newline | Thomas Mangin | |
Change the code to let stderr passthrough to the screen as it is the behaviout of os.system and subprocess.call/check_out The input feature was not working and was fixed Also always convert '\r\n' to '\n' | |||
2020-04-09 | util: T2226: os.system was wrongly converted to run | Thomas Mangin | |
os.system does print the ouput of the command, run() does not. A new function called call() does the printing and return the error code. | |||
2020-04-09 | util: T2205: do not display debuging when it is not set | Thomas Mangin | |
2020-04-09 | Merge pull request #314 from thomas-mangin/T2186 | Christian Poessinger | |
airbag: T2186: report friendly user message and log to syslog | |||
2020-04-08 | vyos.util: introduce chmod_750() for files/directories | Christian Poessinger | |
2020-04-08 | vyos-util: rename chown_file() > chown() | Christian Poessinger | |
... to make it clear also directories can be chown(-ed) | |||
2020-04-08 | logging: T2186: Initial implementation of logging | Thomas Mangin | |
All messages sent to stderr are now logged to syslog. Also should a raise statement not be handled by the program, a friendlier message is sent to the user (with the trace to syslog) It provide a new debug option: /tmp/vyos.developer.debug when the file exists and the code raise without being caught up the program will automatically fall into pdb port-morterm mode allowing to investigate the reason for the failure | |||
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. |