I was trying to perform a rename of a section name using the util.ubus function. For some reason it doesn't seem to be working.
uci file name is testConfig.
config interface 'lan'
option test 'allow'
wanted to rename the named section 'lan'
to 'wan'
and retain rest of the options as it is.
After renaming , expected the config to look like below.
config interface 'wan'
option test 'allow'
function call
luci.util.ubus("uci", "rename", {
config = 'testConfig',
type = 'interface',
name = 'lan',
values = 'wan'
})
Lua does not give any error, but the value also does not get changed.