TOS7.0 - Network Interfaces page: Remote Exception: Incorrect output
Hi, on TurrisOS 7.0 in HBL I'm getting an error when I'm on a Network Settings -> Interfaces page.
The output from a failing fetch
request is following:
https://192.168.2.1/reforis/api/interfaces
- 500 Internal Server Error
Click to expand
Remote Exception: Incorrect output. {'kind': 'reply', 'module': 'networks', 'action': 'get_settings', 'data': {'device': {'model': 'omnia', 'version': '7.0.0'}, 'firewall': {'ssh_on_wan': False, 'http_on_wan': False, 'https_on_wan': False}, 'networks': {'wan': [{'type': 'eth', 'bus': 'eth', 'state': 'up', 'slot': 'WAN', 'module_id': 0, 'macaddr': 'd8:58:d7:00:2d:2e', 'link_speed': 1000, 'id': 'eth2', 'configurable': True}], 'lan': [{'type': 'eth', 'bus': 'eth', 'state': 'up', 'slot': 'LAN0', 'module_id': 0, 'macaddr': 'd8:58:d7:00:2d:2d', 'link_speed': 100, 'id': 'lan0', 'configurable': True}, {'type': 'eth', 'bus': 'eth', 'state': 'down', 'slot': 'LAN1', 'module_id': 0, 'macaddr': 'd8:58:d7:00:2d:2d', 'link_speed': 0, 'id': 'lan1', 'configurable': True}, {'type': 'eth', 'bus': 'eth', 'state': 'down', 'slot': 'LAN2', 'module_id': 0, 'macaddr': 'd8:58:d7:00:2d:2d', 'link_speed': 0, 'id': 'lan2', 'configurable': True}, {'type': 'eth', 'bus': 'eth', 'state': 'down', 'slot': 'LAN3', 'module_id': 0, 'macaddr': 'd8:58:d7:00:2d:2d', 'link_speed': 0, 'id': 'lan3', 'configurable': True}, {'type': 'eth', 'bus': 'eth', 'state': 'down', 'slot': 'LAN4', 'module_id': 0, 'macaddr': 'd8:58:d7:00:2d:2d', 'link_speed': 0, 'id': 'lan4', 'configurable': True}], 'guest': [], 'none': [{'type': 'wwan', 'bus': 'pci', 'state': 'down', 'slot': '3', 'module_id': 0, 'macaddr': '', 'link_speed': 0, 'id': 'wwan0', 'configurable': True}, {'type': 'wifi', 'bus': 'pci', 'state': 'down', 'slot': '2', 'module_id': 0, 'macaddr': '04:f0:21:24:27:5f', 'link_speed': 0, 'id': 'wlan0', 'configurable': False, 'ssid': ''}, {'type': 'wifi', 'bus': 'pci', 'state': 'down', 'slot': '1', 'module_id': 0, 'macaddr': '04:f0:21:23:28:c7', 'link_speed': 0, 'id': 'wlan1', 'configurable': False, 'ssid': ''}]}}}
Extra:
{"module": "networks", "action": "get_settings", "kind": "request"}
Trace:
Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/foris_controller/message_router.py", line 140, in process_message File "/usr/lib/python3.10/site-packages/foris_controller/message_router.py", line 40, in wrapper File "/usr/lib/python3.10/site-packages/foris_controller/message_router.py", line 76, in validate File "/usr/lib/python3.10/site-packages/foris_schema/validator.py", line 282, in validate File "/usr/lib/python3.10/site-packages/jsonschema/validators.py", line 314, in validate jsonschema.exceptions.ValidationError: {'type': 'wwan', 'bus': 'pci', 'state': 'down', 'slot': '3', 'module_id': 0, 'macaddr': '', 'link_speed': 0, 'id': 'wwan0', 'configurable': True} is not valid under any of the given schemas Failed validating 'oneOf' in schema['properties']['data']['properties']['networks']['properties']['none']['items']: {'oneOf': [{'additionalProperties': False, 'properties': {'bus': {'$ref': '#/definitions/interface_bus'}, 'configurable': {'type': 'boolean'}, 'id': {'$ref': '#/definitions/interface_id'}, 'link_speed': {'$ref': '#/definitions/interface_link_speed'}, 'macaddr': {'format': 'macaddress', 'type': 'string'}, 'module_id': {'$ref': '#/definitions/interface_module_id'}, 'slot': {'type': 'string'}, 'state': {'$ref': '#/definitions/interface_state'}, 'type': {'allOf': [{'$ref': '#/definitions/interface_type'}, {'enum': ['eth', 'wwan']}]}, 'vlan_id': {'$ref': '#/definitions/vlan_id'}}, 'required': ['id', 'type', 'bus', 'slot', 'state', 'module_id', 'link_speed', 'configurable', 'macaddr'], 'type': 'object'}, {'additionalProperties': False, 'properties': {'bus': {'$ref': '#/definitions/interface_bus'}, 'configurable': {'type': 'boolean'}, 'id': {'$ref': '#/definitions/interface_id'}, 'link_speed': {'$ref': '#/definitions/interface_link_speed'}, 'macaddr': {'format': 'macaddress', 'type': 'string'}, 'module_id': {'$ref': '#/definitions/interface_module_id'}, 'slot': {'type': 'string'}, 'ssid': {'maxLength': 32, 'minLength': 0, 'type': 'string'}, 'state': {'$ref': '#/definitions/interface_state'}, 'type': {'allOf': [{'$ref': '#/definitions/interface_type'}, {'enum': ['wifi']}]}}, 'required': ['id', 'type', 'bus', 'slot', 'state', 'module_id', 'link_speed', 'configurable', 'ssid', 'macaddr'], 'type': 'object'}]} On instance['data']['networks']['none'][0]: {'bus': 'pci', 'configurable': True, 'id': 'wwan0', 'link_speed': 0, 'macaddr': '', 'module_id': 0, 'slot': '3', 'state': 'down', 'type': 'wwan'}
If I should send more info, please let me know