Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-30 | vyos.util: T4319: add is_ipv6_enabled() helper function | Christian Poessinger | |
(cherry picked from commit df0fbfeedce0f163e9d10be21d58ad4dc797a28a) | |||
2022-03-25 | vyos.util: T4319: rename sysctl() -> sysctl_write() | Christian Poessinger | |
(cherry picked from commit 364009e4317fb5c6732635726b511613aa2ed519) | |||
2022-03-25 | vyos.util: T4319: provide generic sysctl_read() helper | Christian Poessinger | |
(cherry picked from commit 52cb6185a4a51ffa92f10e0ded55a943bc21bc60) | |||
2022-02-21 | smoketest: vxlan: T4120: verify support for multiple remote addresses | Christian Poessinger | |
(cherry picked from commit c3661c8d5d7e8f5c1d040cadf134e87f0d77e28e) | |||
2022-02-13 | vyos.util: T4191: add new sysctl() helper function | Christian Poessinger | |
(cherry picked from commit b40315b3c5051888f499961e63410e14c5d1bad7) | |||
2021-12-16 | T3356: Backport remote module | erkin | |
2021-12-09 | vyos.util: T4061: add function to check for completion of boot config | John Estabrook | |
2021-11-18 | wwan: T3795: make connect and disconnect op-mode commands aware to WWAN ↵ | Christian Poessinger | |
interfaces | |||
2021-09-20 | vyos.util: add is_systemd_service_active() helper function | Christian Poessinger | |
Required by the vyos.ifconfig library - backported from 1.4 (current) | |||
2021-09-06 | vyos.util: T2755: rename dict_search() function args to match other ↵ | Christian Poessinger | |
implementations (cherry picked from commit 9d0c37fbbc91acc9f2c0f2abaab360479e451f0f) | |||
2021-08-14 | vyos.util: T1503: use build in methods to determine current user for ↵ | Christian Poessinger | |
commit_in_progress() (cherry picked from commit a74e67a778a6c698e44cbc6c5d184d03c9c12396) | |||
2021-08-09 | openconnect: T3695: Add systemd service checker on commit | DmitriyEshenko | |
2021-07-25 | vyos.util: backport 1.4 changes on dict_search() | Christian Poessinger | |
2021-07-13 | T3663: add a small sleep between polling for a new inotify event. | Daniil Baturin | |
2021-07-13 | vyos.util: T3663: move inotify-based imports to function level | Christian Poessinger | |
Keep the vyos.util function clean and not pull in the rest of the world when importing it. | |||
2021-07-13 | T3663: add pre_hook argument to util.wait_for_inotify | Daniil Baturin | |
When waiting for processes that don't take long, we need add an inotify watcher _before_ starting that process. The pre-hook arguments allows the user to pass a () -> () anonymous function to be called before adding a watch. | |||
2021-07-13 | T3663: fix the call to time.time() to match the new import scheme. | Daniil Baturin | |
2021-07-13 | T3663: prerequisites for inotify-based watching implementations. | Daniil Baturin | |
2021-05-20 | vyos.util: T3532: Replace func get_interface_config | Viacheslav Hletenko | |
Replace function get_interface_config to function get_interface_config, as we have in 1.4 branch. It need after this cherry-picked commit edcdea8 | |||
2021-05-18 | revert: "util: T2467: add autosudo as an option to command" | Christian Poessinger | |
Implementing a wrapper which will - based on the command - add a sudo prefix to the execution string seemed to be a nice idea but unfortunately it did not only not get momentum but also the codebase somethis added an implicit "sudo" call a second time. This resulted in a call: "sudo sudo systemctl" The entire functionality was removed again and if an op-mode script requires root priviledges it must be explicitly called with them - no black magic. (cherry picked from commit b76931e6d3a4bd0cdb74ca447a746ab6855fcf55) | |||
2021-04-18 | config: T3481: add switch to prevent mangling of tag node values | John Estabrook | |
(cherry picked from commit e96932cbd99f508f9f5c24b207b5650aa8817e45) | |||
2021-03-06 | vyos.util: provide single implementation for get_json_iface_options() | Christian Poessinger | |
There had been four implementations of "ip -d -j link show interface" scattered accross the codebase. Those implementations have now been combined into a new helper: vyos.util.get_json_iface_options() (cherry picked from commit f13cc56d665a91ff3fac47df260301afefb1a3a5) | |||
2021-01-31 | vyos: T3274: Handle EOF in ask_yes_no() | erkin | |
(cherry picked from commit 55c5d662290aea9f2c3abe911bd9920f4f9d7d9a) | |||
2021-01-07 | login: radius: T3192: migrate to get_config_dict() | Christian Poessinger | |
2020-12-28 | webproxy: T563: squidguard: support default ruleset | Christian Poessinger | |
2020-10-28 | vyos.util: T2995: rename vyos_dict_search() -> dict_search() | Christian Poessinger | |
Renamed using snippet below: ---------------------------- for file in $(find . -name "*.py") do sed -i "s/vyos_dict_search/dict_search/" $file done | |||
2020-10-24 | vyos.util: drop obsolete function ifname_from_config() | Christian Poessinger | |
2020-10-24 | vyos.util: drop obsolete function get_bridge_member_config() | Christian Poessinger | |
2020-10-19 | unittests: T2995: vyos_dict_search() must return None on non-existing keys | Christian Poessinger | |
The current wversion unfortunately will raise a KeyError: >>> data = {} >>> vyos_dict_search('foo', data) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/vyos/util.py", line 685, in vyos_dict_search return dict[path] KeyError: 'foo' | |||
2020-09-13 | vyos.util: add missing ConfigError import in check_kmod() | Christian Poessinger | |
2020-08-23 | T2755: convert jmespath.search() to vyos_dict_search() for performance | Christian Poessinger | |
2020-08-23 | vyos.util: T2755: add vyos_dict_search() to traverse a dictionary | Christian Poessinger | |
This is faster implementation then using jmespath.search('foo.bar', dict). | |||
2020-08-16 | Merge pull request #510 from efficiosoft/vyos_template_rewrite | Christian Poessinger | |
vyos.template: T2720: Rework vyos.template Python library | |||
2020-08-15 | lcd: T2564: flatten CLI interface | Christian Poessinger | |
* set system lcd device <device> * set system lcd model <modeml> Both device and model have completion helpers for supported interfaces and LCD displays. | |||
2020-07-25 | bridge: ifconfig: T2653: move to get_config_dict() | Christian Poessinger | |
The current VyOS CLI parser code written in Python contains a ton of duplicates which I can also hold myself accountable for - or maybe mainly me - depends on the angle of judge. While providing a new update() method in vyos.ifconfig.interfaces() this is extended for bridge interfaces in the derived bridge class. Signed-off-by: Christian Poessinger <christian@poessinger.com> | |||
2020-07-25 | vyos.util: add common helper to load kernel modules | Christian Poessinger | |
l2tpv3, wireguard, wirelessmodem, nat all require additional Kernel modules to be present on the system. Each and every interface implemented their own way of loading a module - by copying code. Use a generic function, vyos.util.check_kmod() to load any arbitrary kernel module passed as string or list. | |||
2020-07-21 | vyos.util: T2720: Add file descriptor support to chmod and chown | Robert Schindler | |
Extended the chmod() and chown() functions in vyos.util to also operate on open file descriptors in addition to paths. This allows code that creates files to quickly change mode and owner even before anything has actually been written to the file. | |||
2020-07-01 | config_dict: T2668: move keyword arg get_first_key into get_sub_dict | John Estabrook | |
2020-07-01 | config_dict: T2667: clarify docstring | John Estabrook | |
2020-07-01 | config: T2667: add utility function get_sub_dict | John Estabrook | |
2020-06-18 | T2614: add a key mangling option to vyos.config.get_config_dict() | Daniil Baturin | |
2020-05-20 | util: T2467: fix missing import | Thomas Mangin | |
2020-05-19 | util: T2467: add systemctl to autosudo | Thomas Mangin | |
2020-05-19 | util: T2467: add autosudo as an option to command | Thomas Mangin | |
2020-05-06 | validator: T2417: try to make the code clearer | Thomas Mangin | |
2020-05-04 | util: T2241: add get_bridge_member_config function | Jernej Jakob | |
Function that parses the config of a bridge member into a dict that is needed to apply all port config when adding a port to a bridge. Needed because other interfaces will be adding themselves to the bridge outside of the bridge conf_mode script and they need a common place to get their config. Can't be put as method of BridgeIf as we can't invoke it without it creating the bridge (create=False raises an exception), we need to get the configuration before we create the interface. | |||
2020-05-04 | util: T2241: add func that gets interface name from current config level | Jernej Jakob | |
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 | |