The following NetJSON DeviceConfiguration object:
{
"interfaces": [
{
"type": "ethernet",
"name": "eth0",
"disabled": false
}
]
}
Is converted to the following UCI configuration:
package network
config interface 'eth0'
option disabled '0'
option ifname 'eth0'
option proto 'none'
But according to the OpenWRT network documentation the option disabled does not exist: the right keyword is enabled.
Strangely, disabling the interface:
{
"interfaces": [
{
"type": "ethernet",
"name": "eth0",
"disabled": true
}
]
}
returns a correct UCI configuration:
package network
config interface 'eth0'
option enabled '0'
option ifname 'eth0'
option proto 'none'
It's just a minor inconsistency but it's quite disorienting.
The following NetJSON DeviceConfiguration object:
{ "interfaces": [ { "type": "ethernet", "name": "eth0", "disabled": false } ] }Is converted to the following UCI configuration:
But according to the OpenWRT network documentation the option
disableddoes not exist: the right keyword isenabled.Strangely, disabling the interface:
{ "interfaces": [ { "type": "ethernet", "name": "eth0", "disabled": true } ] }returns a correct UCI configuration:
It's just a minor inconsistency but it's quite disorienting.