summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-client
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-18 18:54:18 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-18 18:55:37 +0200
commit025d76fb4b1641c821cd071144f12d4904634278 (patch)
tree2c70c392365b013be95d27bb880d514994360ece /data/templates/dhcp-client
parent6072d3b7dbd9040a55cddf6ee597ae461796f312 (diff)
downloadvyos-1x-025d76fb4b1641c821cd071144f12d4904634278.tar.gz
vyos-1x-025d76fb4b1641c821cd071144f12d4904634278.zip
vyos: configdict: add dict_merge function
Merge two dictionaries. Only keys which are not present in destination will be copied from source, anything else will be kept untouched. Function will return a new dict which has the merged key/value pairs. Before: {'device': {'usb0b2.4p1.0': {'speed': '9600'}, 'usb0b2.4p1.1': {'data-bits': '8', 'parity': 'none', 'speed': '115200', 'stop-bits': '2'}}} After: {'device': {'usb0b2.4p1.0': {'data-bits': '8', 'parity': 'none', 'speed': '9600', 'stop-bits': '1'}, 'usb0b2.4p1.1': {'data-bits': '8', 'parity': 'none', 'speed': '115200', 'stop-bits': '2'}}}
Diffstat (limited to 'data/templates/dhcp-client')
0 files changed, 0 insertions, 0 deletions