Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-05-11 | vyos.util: T5195: remove the unused camel case to snake case function | Daniil Baturin | |
that was replaced with Humps in all sciprts | |||
2023-03-29 | configdiff: T5089: add unit test | John Estabrook | |
2023-03-29 | configtree: T5089: sorting of nodes is now implemented on parsing config | John Estabrook | |
2023-02-13 | debian: T5003: Fixes for Debian Bookworm | sarthurdev | |
* DH params of 256 length no longer supported | |||
2022-10-25 | vyos.util: T4773: add camel_to_snake_case conversion | John Estabrook | |
2022-10-21 | T4765: support list and primitives in op mode output normalization | create with ansible | |
2022-10-20 | T4765: normalize dict fields in op mode ouputs | Daniil Baturin | |
2022-04-07 | ipv6: T4346: delete (migrate) CLI command to disable IPv6 address family | Christian Poessinger | |
2022-03-30 | vyos.util: T4319: add is_ipv6_enabled() helper function | Christian Poessinger | |
2022-01-03 | test: vyos.validate: also test interface identifier in is_ipv6_link_local() | Christian Poessinger | |
2021-09-06 | vyos.util: add function to search a key recursively in a dictionary | Christian Poessinger | |
data = { 'interfaces': {'dummy': {'dum0': {'address': ['192.0.2.17/29']}}, 'ethernet': {'eth0': {'address': ['2001:db8::1/64', '192.0.2.1/29'], 'description': 'Test123', 'duplex': 'auto', 'hw_id': '00:00:00:00:00:01', 'speed': 'auto'}, 'eth1': {'address': ['192.0.2.9/29'], 'description': 'Test456', 'duplex': 'auto', 'hw_id': '00:00:00:00:00:02', 'speed': 'auto'}}} } dict_search_recursive(data, 'hw_id') will yield both '00:00:00:00:00:01' and '00:00:00:00:00:02' as generator object. | |||
2021-07-03 | ipsec: T2816: add Jinja2 converter for ESP/IKE groups to string | Christian Poessinger | |
2021-07-01 | vyos.util: remove no longer needed copy_file helper method | Christian Poessinger | |
The IPSec ceritifcate handling is now done by storing the CA key inside the running configuration. | |||
2021-06-26 | vyos.util: add new helper copy_file() | Christian Poessinger | |
Copy a file from A -> B but also support adjusting Bs file permissions and creation of Bs base directory if required. | |||
2021-04-05 | vyos.template: T3418: add new is_interface helper function | Christian Poessinger | |
2021-03-23 | vyos.util: dict_search() should not throw exception when inputs are None | Christian Poessinger | |
2021-02-24 | test: remove "test_ethtool.py" as this does not run on Jenkins | Christian Poessinger | |
2021-02-24 | ethernet: T3163: fix typos in vyos.ethtool comments | Christian Poessinger | |
2021-02-24 | ethernet: T3163: not all NIC drivers support ring-buffer configuration | Christian Poessinger | |
In addition to commit cf1156a60e ("ethernet: T3163: probe driver for maximum rx/tx ring-buffer size") this extends the logic in a way as not every driver supports setting the buffers at all so it will properly error out. When invoking "ethtool -g" both stdout and stderr are captured and no exception is raised if it's an unsupported driver feature. The verify() section will inform the user about the illegal operation. | |||
2021-01-19 | nat: T2947: add many-many translation | Christian Poessinger | |
Support a 1:1 or 1:n prefix translation. The following configuration will NAT source addresses from the 10.2.0.0/16 range to an address from 192.0.2.0/29. For this feature to work a Linux Kernel 5.8 or higher is required! vyos@vyos# show nat source { rule 100 { outbound-interface eth1 source { address 10.2.0.0/16 } translation { address 192.0.2.0/29 } } } This results in the nftables configuration: chain POSTROUTING { type nat hook postrouting priority srcnat; policy accept; oifname "eth1" counter packets 0 bytes 0 snat ip prefix to ip saddr map { 10.2.0.0/16 : 192.0.2.0/29 } comment "SRC-NAT-100" } | |||
2020-12-10 | test: vyos.validate: check is_addr_assigned() | Christian Poessinger | |
2020-12-06 | Revert "vyos.ifconfig: T1579: do not remove IPv6 link-local address on ↵ | Christian Poessinger | |
reconfiguration" This reverts commit d247736f67cc056062b75a4215a031bebcfee2ee. We need to clean link-local IPv6 addresses on link reconfiguration to also drop no longer existing link-local addresse son MAC address change. | |||
2020-12-06 | vyos.ifconfig: T1579: do not remove IPv6 link-local address on reconfiguration | Christian Poessinger | |
2020-12-06 | test: vyos.template: test additional templating functions | Christian Poessinger | |
2020-11-13 | vyos.template: provide general is_ip(v4|v6) helpers | Christian Poessinger | |
We had two places were the is_ip, is_ipv4 and is_ipv6 helpers had been defined. All places now have been converged into vyos.template as they are used both in the Jinja2 templates and also in our scripts. | |||
2020-11-01 | openvpn: T2994: re-add ifconfig-pool statement in server config | Christian Poessinger | |
Re-organize the template code and add addtitional Jinja2 filters for processing the ifconfig-pool statement. This reverts the changes from commit 7e546be9 ("openvpn: T2994: temporary revert to 1.2 crux behavior for client pools"). | |||
2020-11-01 | test: extend validate testcases | Christian Poessinger | |
Test additional network combinations of address and prefixes. | |||
2020-11-01 | openvpn: T2994: remove workarounds for individual ipv4 and ipv6 keys | Christian Poessinger | |
Remove workaround which split (local|remote)_address and also subnet keys into individual keys for the assigned IP address family (4/6). During template rendering check IP version by introducing new ipv4 and ipv6 Jinja2 filters {% if foo | ipv4 %} or {% if bar | ipv6 %} options. | |||
2020-11-01 | test: adjust testcase name for vyos.util.dict_search() | Christian Poessinger | |
After renaming the function in commit 25551c5a ("vyos.util: T2995: rename vyos_dict_search() -> dict_search()"), the test case should be renamed, too. | |||
2020-11-01 | test: vyos.validate: add unittests | Christian Poessinger | |
2020-10-30 | openvpn: T2994: verify DH key length | Christian Poessinger | |
2020-10-30 | vyos.util: T2995: change comment style for "make test" output | 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-25 | test: vyos.template: add testcase for vyos_*_from_cidr() converters | Christian Poessinger | |
2020-10-25 | test: import cleanup | Christian Poessinger | |
2020-10-24 | Revert "test: vyos.util: add testcase for process_named_running()" | Christian Poessinger | |
This reverts commit 9939139ba4ad18dc4b62a827d8ab7b74d0c28124. Unfortunately this test does not work within the CI system. It fails with: 17:21:35 ====================================================================== 17:21:35 FAIL: test_process_named_running (test_util.TestVyOSUtil) 17:21:35 ---------------------------------------------------------------------- 17:21:35 Traceback (most recent call last): 17:21:35 File "/var/lib/jenkins/jenkins_slave/workspace/vyos-1x_current/build/src/tests/test_util.py", line 34, in test_process_named_running 17:21:35 self.assertTrue(isinstance(pid, int)) 17:21:35 AssertionError: False is not true As process_named_running() returns None on non existing bash process | |||
2020-10-24 | test: vyos.util: add testcase for process_named_running() | Christian Poessinger | |
2020-10-24 | test: vyos.util: add testcase for find_device_file() | 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-10-19 | unittests: cleanup unused imports | Christian Poessinger | |
2020-07-22 | xml: T2582: use xml for is_tag and is_leaf | Thomas Mangin | |
2020-06-18 | T2614: add a key mangling option to vyos.config.get_config_dict() | Daniil Baturin | |
2019-09-28 | T1694: delete the now broken tests for NTP. | Daniil Baturin | |
2019-03-08 | [ntp] T1280 - reverting added options from that task | hagbard | |
2019-03-07 | [ntp] T1280 - restrict option for servers, so they can query upstream | hagbard | |
2019-03-07 | Revert "[ntp] adding extra option to test" | hagbard | |
This reverts commit 4b2c57f4ba08409b4b6ba459fa8a3d23c5f6990c. | |||
2019-03-07 | [ntp] adding extra option to test | hagbard | |
2019-03-04 | adjusted ntp test to accept the 2 new restrict parameters | hagbard | |
2019-02-16 | Temporary remove hostname test to get module to compile again | Christian Poessinger | |
2019-02-16 | hostname: additional test case fixes | Christian Poessinger | |