summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_load_balancning_wan.py
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-02-12 18:30:23 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-02-12 18:30:23 +0000
commita55bbcc8ec25a3616b7f6396ee14168a707f18eb (patch)
tree99703870bbcb6ef37902c5905a7f52f17891129e /smoketest/scripts/cli/test_load_balancning_wan.py
parentc99c1127d3bc49b67e472e03fcd7f9930407f20d (diff)
downloadvyos-1x-a55bbcc8ec25a3616b7f6396ee14168a707f18eb.tar.gz
vyos-1x-a55bbcc8ec25a3616b7f6396ee14168a707f18eb.zip
T4999: Backport vyos util dict_search_recursive
Backport "dict_search_recursive" from vyos.util 1.4 to 1.3 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.
Diffstat (limited to 'smoketest/scripts/cli/test_load_balancning_wan.py')
0 files changed, 0 insertions, 0 deletions