Hello,
here is a TEMPLATE I've created:
```
{
"radios": [
{
"protocol": "802.11n",
"name": "radio0",
"phy": "",
"channel": 0,
"channel_width": 20,
"tx_power": 10,
"country": "FR",
"disabled": false,
"driver": "mac80211",
"hwmode": "11a"
},
{
"protocol": "802.11n",
"name": "radio1",
"phy": "",
"channel": 0,
"channel_width": 20,
"tx_power": 10,
"country": "FR",
"disabled": false,
"driver": "mac80211",
"hwmode": "11g"
}
],
"switch": [
{
"name": "switch0",
"reset": true,
"enable_vlan": true,
"vlan": [
{
"device": "switch0",
"vlan": 3170,
"ports": "0t 1t"
}
]
}
],
"interfaces": [
{
"wireless": {
"network": [],
"mode": "access_point",
"radio": "radio1",
"ack_distance": 0,
"rts_threshold": 0,
"frag_threshold": 0,
"ssid": "yves-test",
"hidden": false,
"wds": true,
"encryption": {
"protocol": "wpa2_personal",
"key": "secretkey",
"disabled": false,
"cipher": "auto"
},
"wmm": true,
"isolate": false,
"macfilter": "disable",
"maclist": []
},
"type": "wireless",
"name": "wlan1",
"mtu": 1500,
"mac": "",
"autostart": true,
"disabled": false,
"addresses": [],
"network": "bb"
},
{
"type": "bridge",
"stp": false,
"bridge_members": [
"eth0"
],
"name": "bb",
"mtu": 1500,
"mac": "",
"autostart": true,
"disabled": false,
"addresses": [],
"network": "",
"igmp_snooping": true
}
]
}
```
I'm trying to apply it to a device. And the issue is that it is rejeted by
the validator with the following message:
"There is a conflict with the specified templates. Invalid configuration
triggered by "#/interfaces/1", validator says: {'type': 'bridge', 'stp':
False, 'bridge_members': ['eth0', 'eth0'], 'name': 'bb', 'mtu': 1500,
'mac': '', 'autostart': True, 'disabled': False, 'addresses': [],
'network': '', 'igmp_snooping': True} is not valid under any of the given
schemas"
As you can see from the configuration json file, there's only one bridge
member in this bridge interface. I do not understand why the validator
states there's two bridge members: ['eth0','eth0'] , which are both eth0 by
the way.. Could it be a bug in openwisp?
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/961c92ce-f825-40ed-881c-a7278cc95460n%40googlegroups.com.