What is the difference between commit
and apply
uci commands on ubus?
From what I understand, the apply
allows to rollback if there is an error in the new config and Luci seems to use apply
so it seems prefered to use it over commit
.
I can use commit
with:
ubus call uci commit '{"config": "network"}'
But I cannot figure how to use the apply
command.
Thank you
I have tried:
ubus call uci apply '{"timeout": 30, "rollback": true}'
But I get the answer:
Command failed: Invalid argument