From 116ba9fba7f4f95a7d084d2bc9f56484a94a3b56 Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Tue, 23 Sep 2025 12:02:30 +0200 Subject: [PATCH] sulu-vendorext: replace X_GENEXIS_EU_mesh with X_IOWRT_EU_MAPController --- .../extn/X_GENEXIS_EU_mesh.json | 416 ------------------ .../extn/X_IOWRT_EU_MAPController.json | 353 +++++++++++++++ 2 files changed, 353 insertions(+), 416 deletions(-) delete mode 100644 sulu/sulu-vendorext/extn/X_GENEXIS_EU_mesh.json create mode 100644 sulu/sulu-vendorext/extn/X_IOWRT_EU_MAPController.json diff --git a/sulu/sulu-vendorext/extn/X_GENEXIS_EU_mesh.json b/sulu/sulu-vendorext/extn/X_GENEXIS_EU_mesh.json deleted file mode 100644 index a60d06590..000000000 --- a/sulu/sulu-vendorext/extn/X_GENEXIS_EU_mesh.json +++ /dev/null @@ -1,416 +0,0 @@ -{ - "Device.DeviceInfo.X_GENEXIS_EU_mesh.": { - "type": "object", - "protocols": [ - "cwmp", - "usp" - ], - "access": false, - "array": false, - "meshmode": { - "type": "string", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "mapping": [ - { - "rpc": "get", - "type": "ubus", - "ubus": { - "object": "meshmode", - "method": "status", - "key": "mode" - } - }, - { - "rpc": "set", - "type": "ubus", - "ubus": { - "object": "meshmode", - "method": "change_meshmode", - "args": { - "mode": "@Value" - } - } - } - ] - }, - "easymesh_controller_enabled": { - "type": "boolean", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "default": true, - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "name": "controller" - }, - "option": { - "name": "enabled" - } - } - } - ] - }, - "enable_sta_steer": { - "type": "boolean", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "name": "@sta_steering[0]" - }, - "option": { - "name": "enable_sta_steer" - } - } - } - ] - }, - "use_bcn_metrics": { - "type": "boolean", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "name": "@sta_steering[0]" - }, - "option": { - "name": "use_bcn_metrics" - } - } - } - ] - }, - "sta_steering_enabled": { - "type": "boolean", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "name": "@sta_steering[0]" - }, - "option": { - "name": "enabled" - } - } - } - ] - }, - "ApNumberOfEntries": { - "type": "unsignedInt", - "protocols": [ - "cwmp", - "usp" - ], - "read": true, - "write": false, - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap" - }, - "option": { - "name": "@Count" - } - } - } - ] - }, - "Device.DeviceInfo.X_GENEXIS_EU_mesh.ap.{i}.": { - "type": "object", - "protocols": [ - "cwmp", - "usp" - ], - "access": true, - "array": true, - "mapping": { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap" - }, - "dmmapfile": "dmmap_mapcontroller" - } - }, - "ssid": { - "type": "string", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "datatype": "string", - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "ssid" - } - } - } - ] - }, - "band": { - "type": "unsignedInt", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "enumerations": [ - "2", - "5", - "6" - ], - "datatype": "string", - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "band" - } - } - } - ] - }, - "encryption": { - "type": "string", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "enumerations": [ - "sae", - "sae+aes", - "psk2", - "psk2+aes", - "sae-mixed", - "sae-mixed+aes", - "none", - "psk-mixed", - "psk-mixed+aes", - "psk", - "psk+aes" - ], - "datatype": "string", - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "encryption" - } - } - } - ] - }, - "key": { - "type": "string", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "datatype": "string", - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "key" - } - } - } - ] - }, - "vid": { - "type": "unsignedInt", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "datatype": "string", - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "vid" - } - } - } - ] - }, - "ap_type": { - "type": "string", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "enumerations": [ - "fronthaul", - "backhaul", - "combined" - ], - "datatype": "string", - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "type" - } - } - } - ] - }, - "builtin": { - "type": "boolean", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "datatype": "boolean", - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "builtin" - } - } - } - ] - }, - "enabled": { - "type": "boolean", - "version": "1.00", - "read": true, - "write": true, - "protocols": [ - "cwmp", - "usp" - ], - "datatype": "boolean", - "default": true, - "mapping": [ - { - "type": "uci", - "uci": { - "file": "mapcontroller", - "section": { - "type": "ap", - "index": "@{i-1}" - }, - "option": { - "name": "enabled" - } - } - } - ] - } - } - } -} - - diff --git a/sulu/sulu-vendorext/extn/X_IOWRT_EU_MAPController.json b/sulu/sulu-vendorext/extn/X_IOWRT_EU_MAPController.json new file mode 100644 index 000000000..5edee45d3 --- /dev/null +++ b/sulu/sulu-vendorext/extn/X_IOWRT_EU_MAPController.json @@ -0,0 +1,353 @@ +{ + "json_plugin_version": 2, + "Device.X_IOWRT_EU_MAPController.": { + "type": "object", + "protocols": [ + "usp" + ], + "access": false, + "array": false, + "Device.X_IOWRT_EU_MAPController.Controller.": { + "type": "object", + "protocols": [ + "usp" + ], + "access": false, + "array": false, + "dependency": "file:/etc/config/mapcontroller", + "Enable": { + "type": "boolean", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "default": true, + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "controller" + }, + "option": { + "name": "enabled" + } + } + } + ] + }, + "ChannelPlan": { + "type": "unsignedInt", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "controller" + }, + "option": { + "name": "channel_plan_interval" + } + } + } + ] + }, + "AllowBackgroundDFS": { + "type": "unsignedInt", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "controller" + }, + "option": { + "name": "bgdfs_interval" + } + } + } + ] + }, + "TrafficSeparation": { + "type": "boolean", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "controller" + }, + "option": { + "name": "traffic_separation" + } + } + } + ] + }, + "InitialChannelScan": { + "type": "boolean", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "controller" + }, + "option": { + "name": "initial_scan" + } + } + } + ] + } + }, + "Device.X_IOWRT_EU_MAPController.AccessPoint.{i}.": { + "type": "object", + "protocols": [ + "usp" + ], + "access": true, + "array": true, + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "type": "ap" + }, + "dmmapfile": "dmmap_mapcontroller" + } + } + ], + "Band": { + "type": "string", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "band" + } + ] + }, + "SSID": { + "type": "string", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "ssid" + } + ] + }, + "Encryption": { + "type": "string", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "encryption" + } + ] + }, + "Key": { + "type": "string", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "flags": [ + "Secure" + ], + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "key" + } + ] + }, + "HaulType": { + "type": "string", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "default": "fronthaul", + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "type" + } + ] + }, + "NetworkType": { + "type": "string", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "default": "Primary", + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "network_type" + } + ] + }, + "VID": { + "type": "unsignedInt", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "default": 1, + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "vid" + } + ] + }, + "Enable": { + "type": "boolean", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "default": true, + "mapping": [ + { + "type": "uci_sec", + "data": "@Parent", + "key": "enabled" + } + ] + } + }, + "Device.X_IOWRT_EU_MAPController.STASteering.": { + "type": "object", + "protocols": [ + "usp" + ], + "access": false, + "array": false, + "dependency": "file:/etc/config/mapcontroller", + "STASteering": { + "type": "boolean", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "sta_steering" + }, + "option": { + "name": "enable_sta_steer" + } + } + } + ] + }, + "BackhaulSTASteering": { + "type": "boolean", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "sta_steering" + }, + "option": { + "name": "enable_bsta_steer" + } + } + } + ] + }, + "BandSteering": { + "type": "boolean", + "read": true, + "write": true, + "protocols": [ + "usp" + ], + "mapping": [ + { + "type": "uci", + "uci": { + "file": "mapcontroller", + "section": { + "name": "sta_steering" + }, + "option": { + "name": "bandsteer" + } + } + } + ] + } + } + } +}