From a3f12786528eaf315a5c3f36ba73d68679befb47 Mon Sep 17 00:00:00 2001 From: Tennessee Carmel-Veilleux Date: Thu, 18 Jan 2024 23:13:56 -0500 Subject: [PATCH] Make UpTime attribute mandatory in ZAP RootNode - ZAP tool RootNode device type now has UpTime mandatory. It is only mandatory for rev >= 2 (e.g. current rev) but could not be made mandatory in SDK "directly" since it was optional before. Now the test cases check for UpTime presence to be mandatory (TC-DGGEN-1.1), but this change makes it so ZAP will warn if somehow the attribute is not present. Fixes #30023 Testing done: - Ran ZAP tool and saw the warning on removing UpTime attribute in Endpoint 0. --- .../zcl/data-model/chip/general-diagnostics-cluster.xml | 3 ++- .../zap-templates/zcl/data-model/chip/matter-devices.xml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/general-diagnostics-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/general-diagnostics-cluster.xml index 7d6fe3eb1b88ed..5e1ec18a71f345 100644 --- a/src/app/zap-templates/zcl/data-model/chip/general-diagnostics-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/general-diagnostics-cluster.xml @@ -86,7 +86,8 @@ limitations under the License. NetworkInterfaces RebootCount - + UpTime TotalOperationalHours BootReason diff --git a/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml b/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml index 7fd03bd0bf41aa..a3eff6c18a7065 100644 --- a/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml +++ b/src/app/zap-templates/zcl/data-model/chip/matter-devices.xml @@ -78,7 +78,9 @@ limitations under the License. HOUR_FORMAT - + + UP_TIME + @@ -1871,7 +1873,7 @@ limitations under the License. - +