infix icon indicating copy to clipboard operation
infix copied to clipboard

Refactor `put_config_dict` to accept data for multiple models

Open wkz opened this issue 1 year ago • 0 comments

E.g. instead of...

target.put_config_dict("ietf-system", { "system": { "hostname": "asdf" } })
target.put_config_dict("ietf-interfaces", { "interfaces": { "interface": [{"name": "eth0", "enabled": False }] } })

...we want either....

target.put_config_dict({
    "ietf-system": { "system": { "hostname": "asdf" } },
    "ietf-interfaces": { "interfaces": { "interface": [{"name": "eth0", "enabled": False }] } },
})

...or perhaps....

target.put_config_dict({
    "ietf-system:system": { "hostname": "asdf" },
    "ietf-interfaces:interfaces": { "interface": [{"name": "eth0", "enabled": False }] },
})

wkz avatar Apr 09 '24 11:04 wkz