From 84c3c9d8c33e389bf3f0236d5f130da2845d5230 Mon Sep 17 00:00:00 2001
From: Amin Ben Romdhane <amin.benromdhane@iopsys.eu>
Date: Wed, 30 Apr 2025 03:36:34 +0000
Subject: [PATCH] Add Data Model description File for vendor extns

---
 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..f120265
--- /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, applicable if host is a ieee1905 capable repeater/extender.",
+					"datatype": "string"
+				},
+				"{BBF_VENDOR_PREFIX}IsIEEE1905": {
+					"type": "boolean",
+					"read": true,
+					"write": false,
+					"protocols": [
+						"cwmp",
+						"usp"
+					],
+					"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": true,
+					"protocols": [
+						"cwmp",
+						"usp"
+					],
+					"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": true,
+					"protocols": [
+						"cwmp",
+						"usp"
+					],
+					"description": "Host type/category set by end-users (e.g., PC, smartphone, printer).",
+					"datatype": "string"
+				}
+			}
+		}
+	}
+}
-- 
GitLab