Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-04-27 | template: T2388: fix typo | John Estabrook | |
2020-04-27 | Merge pull request #381 from thomas-mangin/T2388 | Christian Poessinger | |
template: T2388: move mkdir/chmod/chown within render() | |||
2020-04-27 | template: T2388: move mkdir/chmod/chown within render() | Thomas Mangin | |
2020-04-26 | util: T2226: a way to report noteworthy event | Thomas Mangin | |
debug.noteworthy can be used to record noteworhy event during the lifetime of the program. Should anything then cause the program to fail and cause an airbag report to the user, then this information will also be included. | |||
2020-04-26 | util: T2226: expected return code for cmd | Thomas Mangin | |
add an option to cmd() allowing to define a list of error codes which are expected when runnin the command. the default is only to expect zero (no error). | |||
2020-04-26 | util: T2226: better handle stderr | Thomas Mangin | |
Do not agreggate stderr with stdout. So if a command reports a message on stderr but does not report an error, it will not be send to the user to confuse him. Explicitely set encoding to utf-8, which does not change the code behaviour but simplify the code. | |||
2020-04-22 | Merge pull request #360 from thomas-mangin/T2186-syslog | Christian Poessinger | |
airbag: T2186: generic syslog and better text | |||
2020-04-20 | vyos.util: T2347: call will print output only if non-empty | John Estabrook | |
2020-04-20 | airbag: T2186: improve information reported | Thomas Mangin | |
2020-04-19 | bridge: T2232: move helper to vyos.validate | Christian Poessinger | |
2020-04-18 | ipoe-server: T2324: remove boilerplate code and adjust to other accel ↵ | Christian Poessinger | |
implementations | |||
2020-04-15 | vyos.util: T1607: move imports locally to functions using them | Christian Poessinger | |
2020-04-15 | dns-forwarding: T2298: fix path to control file | Christian Poessinger | |
After migrating PowerDNS to systemd and also its configuration files to a volatile directory in commit 77d725f ("dns-forwarding: T2185: move configuration files to volatile /run directory") the path for the control file has not been altered and pushed to the client rec_control binary" | |||
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 | |