tak będzie OK?
{
"model": {
"id": "zte,mf286r",
"name": "ZTE MF286R"
},
"switch": {
"switch0": {
"enable": true,
"reset": true,
"ports": [
{
"num": 0,
"device": "eth0",
"need_tag": false,
"want_untag": false
},
{
"num": 1,
"role": "lan",
"index": 4
},
{
"num": 2,
"role": "lan",
"index": 3
},
{
"num": 3,
"role": "lan",
"index": 2
},
{
"num": 5,
"role": "wan",
"index": 1
}
],
"roles": [
{
"role": "lan",
"ports": "1 2 3 0t",
"device": "eth0.1"
},
{
"role": "wan",
"ports": "5 0t",
"device": "eth0.2"
}
]
}
},
"network": {
"lan": {
"device": "eth0.1",
"protocol": "static"
},
"wan": {
"device": "eth0.2",
"protocol": "dhcp"
}
},
"gpioswitch": {
"power_btn_block": {
"name": "Power button blocker",
"pin": "532",
"default": 0
}
},
"wlan": {
"phy0": {
"path": "pci0000:00/0000:00:00.0",
"info": {
"antenna_rx": 3,
"antenna_tx": 3,
"bands": {
"5G": {
"ht": true,
"vht": true,
"max_width": 80,
"modes": [
"NOHT",
"HT20",
"VHT20",
"HT40",
"VHT40",
"VHT80"
],
"default_channel": 36
}
},
"radios": []
}
},
"phy1": {
"path": "platform/ahb/18100000.wmac",
"info": {
"antenna_rx": 7,
"antenna_tx": 7,
"bands": {
"2G": {
"ht": true,
"max_width": 40,
"modes": [
"NOHT",
"HT20",
"HT40"
],
"default_channel": 1
}
},
"radios": []
}
}
}
}
było tak
{
"model": {
"id": "zte,mf286r",
"name": "ZTE MF286R"
},
"switch": {
"switch0": {
"enable": true,
"reset": true,
"ports": [
{
"num": 0,
"device": "eth0",
"need_tag": false,
"want_untag": false
},
{
"num": 1,
"role": "lan",
"index": 4
},
{
"num": 2,
"role": "lan",
"index": 3
},
{
"num": 3,
"role": "lan",
"index": 2
},
{
"num": 5,
"role": "lan",
"index": 1
}
],
"roles": [
{
"role": "lan",
"ports": "1 2 3 5 0t",
"device": "eth0.1"
}
]
}
},
"network": {
"lan": {
"device": "eth0.1",
"protocol": "static"
}
},
"gpioswitch": {
"power_btn_block": {
"name": "Power button blocker",
"pin": "532",
"default": 0
}
},
"wlan": {
"phy0": {
"path": "pci0000:00/0000:00:00.0",
"info": {
"antenna_rx": 3,
"antenna_tx": 3,
"bands": {
"5G": {
"ht": true,
"vht": true,
"max_width": 80,
"modes": [
"NOHT",
"HT20",
"VHT20",
"HT40",
"VHT40",
"VHT80"
],
"default_channel": 36
}
},
"radios": [
]
}
},
"phy1": {
"path": "platform/ahb/18100000.wmac",
"info": {
"antenna_rx": 7,
"antenna_tx": 7,
"bands": {
"2G": {
"ht": true,
"max_width": 40,
"modes": [
"NOHT",
"HT20",
"HT40"
],
"default_channel": 1
}
},
"radios": [
]
}
}
}
}