Age | Commit message (Collapse) | Author | |
---|---|---|---|
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-03-23 | vyos.util: dict_search() should not throw exception when inputs are None | Christian Poessinger | |
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. |