From 793b1b11a101126b4244eb06b166c9318d4decca Mon Sep 17 00:00:00 2001 From: Amin Ben Romdhane <amin.benromdhane@iopsys.eu> Date: Tue, 29 Apr 2025 12:09:42 +0200 Subject: [PATCH 1/2] Add Data Model description File --- src/bbf_plugin/datamodel_description.json | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 src/bbf_plugin/datamodel_description.json diff --git a/src/bbf_plugin/datamodel_description.json b/src/bbf_plugin/datamodel_description.json new file mode 100644 index 0000000..4db7d0f --- /dev/null +++ b/src/bbf_plugin/datamodel_description.json @@ -0,0 +1,87 @@ +{ + "Device.": { + "type": "object", + "protocols": [ + "cwmp", + "usp" + ], + "description": "The top-level object for a Device.", + "access": false, + "array": false, + "Device.Hosts.": { + "type": "object", + "protocols": [ + "cwmp", + "usp" + ], + "description": "This object provides information about each of the hosts on the LAN, including those whose IP address was allocated by the CPE using DHCP as well as hosts with statically allocated IP addresses. It can also include non-IP hosts.", + "access": false, + "array": false, + "Device.Hosts.Host.{i}.": { + "type": "object", + "protocols": [ + "cwmp", + "usp" + ], + "description": "Information about an individual host on the LAN.", + "access": false, + "array": true, + "{BBF_VENDOR_PREFIX}ActiveIPConnections": { + "type": "unsignedInt", + "read": true, + "write": false, + "protocols": [ + "cwmp", + "usp" + ], + "description": "Indicates the number of currently active IP connections associated with this host.", + "datatype": "unsignedInt" + }, + "{BBF_VENDOR_PREFIX}IEEE1905ID": { + "type": "string", + "read": true, + "write": false, + "protocols": [ + "cwmp", + "usp" + ], + "description": "Represents the IEEE 1905.1 unique identifier (AL MAC address) for this host, used in hybrid home networking.", + "datatype": "string" + }, + "{BBF_VENDOR_PREFIX}IsIEEE1905": { + "type": "boolean", + "read": true, + "write": false, + "protocols": [ + "cwmp", + "usp" + ], + "description": "Indicates whether the host is compliant with IEEE 1905.1 standard (true) or not (false).", + "datatype": "boolean" + }, + "{BBF_VENDOR_PREFIX}Name": { + "type": "string", + "read": true, + "write": false, + "protocols": [ + "cwmp", + "usp" + ], + "description": "Friendly name assigned to the host, which may be determined via DHCP hostname or other discovery methods.", + "datatype": "string" + }, + "{BBF_VENDOR_PREFIX}Type": { + "type": "string", + "read": true, + "write": false, + "protocols": [ + "cwmp", + "usp" + ], + "description": "Describes the type of host device (e.g., PC, smartphone, printer) as detected or configured by the device.", + "datatype": "string" + } + } + } + } +} \ No newline at end of file -- GitLab From 82f01e4c33f0733346d722443fdc45823ec4cdc1 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta <vivek.dutta@iopsys.eu> Date: Wed, 30 Apr 2025 09:04:22 +0530 Subject: [PATCH 2/2] updated descriptions --- src/bbf_plugin/datamodel_description.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bbf_plugin/datamodel_description.json b/src/bbf_plugin/datamodel_description.json index 4db7d0f..f120265 100644 --- a/src/bbf_plugin/datamodel_description.json +++ b/src/bbf_plugin/datamodel_description.json @@ -45,7 +45,7 @@ "cwmp", "usp" ], - "description": "Represents the IEEE 1905.1 unique identifier (AL MAC address) for this host, used in hybrid home networking.", + "description": "Represents the IEEE 1905.1 unique identifier (AL MAC address) for this host, applicable if host is a ieee1905 capable repeater/extender.", "datatype": "string" }, "{BBF_VENDOR_PREFIX}IsIEEE1905": { @@ -56,32 +56,32 @@ "cwmp", "usp" ], - "description": "Indicates whether the host is compliant with IEEE 1905.1 standard (true) or not (false).", + "description": "Indicates whether the host support IEEE1905.1 standard, used for identification of repeaters/extenders.", "datatype": "boolean" }, "{BBF_VENDOR_PREFIX}Name": { "type": "string", "read": true, - "write": false, + "write": true, "protocols": [ "cwmp", "usp" ], - "description": "Friendly name assigned to the host, which may be determined via DHCP hostname or other discovery methods.", + "description": "Friendly name assigned to the host by end-users, In case end-user does not assign a name it shows hostname determined via DHCP hostname or other discovery methods.", "datatype": "string" }, "{BBF_VENDOR_PREFIX}Type": { "type": "string", "read": true, - "write": false, + "write": true, "protocols": [ "cwmp", "usp" ], - "description": "Describes the type of host device (e.g., PC, smartphone, printer) as detected or configured by the device.", + "description": "Host type/category set by end-users (e.g., PC, smartphone, printer).", "datatype": "string" } } } } -} \ No newline at end of file +} -- GitLab